Home
last modified time | relevance | path

Searched refs:MacroName (Results 1 – 14 of 14) sorted by relevance

/external/clang/lib/Frontend/
DInitPreprocessor.cpp44 StringRef MacroName = MacroPair.first; in DefineBuiltinMacro() local
46 if (MacroName.size() != Macro.size()) { in DefineBuiltinMacro()
51 << MacroName; in DefineBuiltinMacro()
57 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro()
59 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro()
183 static void DefineTypeSize(const Twine &MacroName, unsigned TypeWidth, in DefineTypeSize() argument
188 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize()
193 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeSize() argument
195 DefineTypeSize(MacroName, TI.getTypeWidth(Ty), TI.getTypeConstantSuffix(Ty), in DefineTypeSize()
199 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty, in DefineType() argument
[all …]
DDiagnosticRenderer.cpp466 StringRef MacroName = getImmediateMacroName(Loc, SM, LangOpts); in emitMacroExpansions() local
467 if (MacroName.empty()) in emitMacroExpansions()
470 Message << "expanded from macro '" << MacroName << "'"; in emitMacroExpansions()
/external/clang/lib/Lex/
DPPMacroExpansion.cpp512 MacroArgs *Preprocessor::ReadFunctionLikeMacroArgs(Token &MacroName, in ReadFunctionLikeMacroArgs() argument
557 Diag(MacroName, diag::err_unterm_macro_invoc); in ReadFunctionLikeMacroArgs()
559 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs()
561 MacroName = Tok; in ReadFunctionLikeMacroArgs()
607 CodeComplete->CodeCompleteMacroArgument(MacroName.getIdentifierInfo(), in ReadFunctionLikeMacroArgs()
662 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs()
676 Diag(MacroName, in ReadFunctionLikeMacroArgs()
686 DiagnosticBuilder DB = Diag(MacroName, diag::note_suggest_parens_for_macro); in ReadFunctionLikeMacroArgs()
730 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs()
744 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs()
[all …]
/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp341 StringRef MacroName = Lexer::getImmediateMacroName(CastLoc, in transformObjCToNonObjCCast() local
344 if (MacroName == "Block_copy") { in transformObjCToNonObjCCast()
348 if (MacroName == "Block_release") { in transformObjCToNonObjCCast()
DTransRetainReleaseDealloc.cpp337 StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM, in checkForGCDOrXPC() local
339 bool isGCDOrXPC = llvm::StringSwitch<bool>(MacroName) in checkForGCDOrXPC()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp474 const char* MacroName = LocInfo.second + BufferInfo.data(); in HandlePiece() local
476 BufferInfo.begin(), MacroName, BufferInfo.end()); in HandlePiece()
481 os << MacroName[i]; in HandlePiece()
/external/clang/lib/Analysis/
DReachableCode.cpp141 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro() local
142 if (MacroName == "YES" || MacroName == "NO") in isExpandedFromConfigurationMacro()
/external/clang/lib/AST/
DCommentSema.cpp698 StringRef MacroName = PP->getLastMacroWithSpelling(FD->getLocation(), in checkDeprecatedCommand() local
700 if (!MacroName.empty()) in checkDeprecatedCommand()
701 AttributeSpelling = MacroName; in checkDeprecatedCommand()
/external/clang/lib/Serialization/
DASTReader.cpp424 StringRef MacroName = MacroPair.first; in collectMacroDefinitions() local
429 if (MacroNames && !Macros.count(MacroName)) in collectMacroDefinitions()
430 MacroNames->push_back(MacroName); in collectMacroDefinitions()
432 Macros[MacroName] = std::make_pair("", true); in collectMacroDefinitions()
437 if (MacroName.size() == Macro.size()) in collectMacroDefinitions()
445 if (MacroNames && !Macros.count(MacroName)) in collectMacroDefinitions()
446 MacroNames->push_back(MacroName); in collectMacroDefinitions()
447 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions()
470 StringRef MacroName = ExistingMacroNames[I]; in checkPreprocessorOptions() local
471 std::pair<StringRef, bool> Existing = ExistingMacros[MacroName]; in checkPreprocessorOptions()
[all …]
/external/clang/include/clang/Sema/
DCodeCompleteConsumer.h135 unsigned getMacroUsagePriority(StringRef MacroName,
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1133 StringRef MacroName = PP.getLastMacroWithSpelling(L, Tokens); in DiagnoseSwitchLabelsFallthrough() local
1134 if (!MacroName.empty()) in DiagnoseSwitchLabelsFallthrough()
1135 AnnotationSpelling = MacroName; in DiagnoseSwitchLabelsFallthrough()
DSemaCodeComplete.cpp2884 unsigned clang::getMacroUsagePriority(StringRef MacroName, in getMacroUsagePriority() argument
2890 if (MacroName.equals("nil") || MacroName.equals("NULL") || in getMacroUsagePriority()
2891 MacroName.equals("Nil")) { in getMacroUsagePriority()
2897 else if (MacroName.equals("YES") || MacroName.equals("NO") || in getMacroUsagePriority()
2898 MacroName.equals("true") || MacroName.equals("false")) in getMacroUsagePriority()
2901 else if (MacroName.equals("bool")) in getMacroUsagePriority()
/external/clang/lib/Basic/
DTargets.cpp41 static void DefineStd(MacroBuilder &Builder, StringRef MacroName, in DefineStd() argument
43 assert(MacroName[0] != '_' && "Identifier should be in the user's namespace"); in DefineStd()
48 Builder.defineMacro(MacroName); in DefineStd()
51 Builder.defineMacro("__" + MacroName); in DefineStd()
54 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
/external/clang/include/clang/Lex/
DPreprocessor.h1448 MacroArgs *ReadFunctionLikeMacroArgs(Token &MacroName, MacroInfo *MI,