/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * Based on LLVM/Clang. * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. *
*/
// some testing macro if (aMacroName == "RTL_STRING_CONST_FUNCTION") return; if (aMacroName == "rtl") return; // we replicate these macros in all the .hrc files if (aMacroName == "NC_" || aMacroName == "NNC_") return; // We define this prior to including <windows.h>: if (aMacroName == "WIN32_LEAN_AND_MEAN")
{ return;
} // TODO no obvious fix for these if (aMacroName == "FID_SEARCH_NOW" || aMacroName == "FID_SVX_START" || aMacroName == "FN_PARAM") return; // ignore for now, requires adding too many includes to sw/ if (aMacroName == "MM50") return;
// ignore for now, we have the same define in svx and sw, but I can't remove one of them because // they reference strings in different resource bundles if (aMacroName == "STR_UNDO_COL_DELETE" || aMacroName == "STR_UNDO_ROW_DELETE"
|| aMacroName == "STR_TABLE_NUMFORMAT" || aMacroName == "STR_DELETE") return;
if (m_aDefMap.emplace(aMacroName, Entry{ aLoc }).second)
{ return;
}
// Happens e.g. with macros defined in include/premac.h, which is intended to be included // (without include guards) multiple times: autoconst other = m_aDefMap[aMacroName].m_aLoc;
assert(aLoc == compiler.getSourceManager().getSpellingLoc(aLoc));
assert(other == compiler.getSourceManager().getSpellingLoc(other)); if ((compiler.getSourceManager().getFilename(aLoc)
== compiler.getSourceManager().getFilename(other))
&& (compiler.getSourceManager().getSpellingLineNumber(aLoc)
== compiler.getSourceManager().getSpellingLineNumber(other))
&& (compiler.getSourceManager().getSpellingColumnNumber(aLoc)
== compiler.getSourceManager().getSpellingColumnNumber(other)))
{ return;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.