/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 45 StringRef MacroName = MacroPair.first; in DefineBuiltinMacro() local 47 if (MacroName.size() != Macro.size()) { in DefineBuiltinMacro() 52 << MacroName; in DefineBuiltinMacro() 58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro() 60 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro() 184 static void DefineTypeSize(const Twine &MacroName, unsigned TypeWidth, in DefineTypeSize() argument 189 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize() 194 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeSize() argument 196 DefineTypeSize(MacroName, TI.getTypeWidth(Ty), TI.getTypeConstantSuffix(Ty), in DefineTypeSize() 210 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty, in DefineType() argument [all …]
|
D | DiagnosticRenderer.cpp | 436 StringRef MacroName = in emitSingleMacroExpansion() local 438 if (MacroName.empty()) in emitSingleMacroExpansion() 441 Message << "expanded from macro '" << MacroName << "'"; in emitSingleMacroExpansion()
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 706 MacroArgs *Preprocessor::ReadFunctionLikeMacroArgs(Token &MacroName, in ReadFunctionLikeMacroArgs() argument 752 Diag(MacroName, diag::err_unterm_macro_invoc); in ReadFunctionLikeMacroArgs() 754 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs() 756 MacroName = Tok; in ReadFunctionLikeMacroArgs() 805 CodeComplete->CodeCompleteMacroArgument(MacroName.getIdentifierInfo(), in ReadFunctionLikeMacroArgs() 860 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs() 874 Diag(MacroName, in ReadFunctionLikeMacroArgs() 884 DiagnosticBuilder DB = Diag(MacroName, diag::note_suggest_parens_for_macro); in ReadFunctionLikeMacroArgs() 928 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs() 942 << MacroName.getIdentifierInfo(); in ReadFunctionLikeMacroArgs() [all …]
|
D | Pragma.cpp | 900 Token MacroName; in HandlePragma() local 901 PP.LexUnexpandedToken(MacroName); in HandlePragma() 902 auto *MacroII = MacroName.getIdentifierInfo(); in HandlePragma() 906 PP.Diag(MacroName, diag::warn_pragma_debug_missing_argument) in HandlePragma()
|
D | PPDirectives.cpp | 2218 static bool isConfigurationPattern(Token &MacroName, MacroInfo *MI, in isConfigurationPattern() argument 2224 if (MacroName.getKind() == Value.getKind()) in isConfigurationPattern() 2232 StringRef MacroText = MacroName.getIdentifierInfo()->getName(); in isConfigurationPattern() 2255 return MacroName.isOneOf(tok::kw_extern, tok::kw_inline, tok::kw_static, in isConfigurationPattern()
|
/external/clang/lib/ARCMigrate/ |
D | TransUnbridgedCasts.cpp | 341 StringRef MacroName = Lexer::getImmediateMacroName(CastLoc, in transformObjCToNonObjCCast() local 344 if (MacroName == "Block_copy") { in transformObjCToNonObjCCast() 348 if (MacroName == "Block_release") { in transformObjCToNonObjCCast()
|
D | TransRetainReleaseDealloc.cpp | 327 StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM, in checkForGCDOrXPC() local 329 bool isGCDOrXPC = llvm::StringSwitch<bool>(MacroName) in checkForGCDOrXPC()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 492 const char* MacroName = LocInfo.second + BufferInfo.data(); in HandlePiece() local 494 BufferInfo.begin(), MacroName, BufferInfo.end()); in HandlePiece() 499 os << MacroName[i]; in HandlePiece()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 1090 StringRef MacroName; in getFallthroughAttrSpelling() local 1092 MacroName = PP.getLastMacroWithSpelling(Loc, ClangFallthroughTokens); in getFallthroughAttrSpelling() 1093 if (MacroName.empty()) in getFallthroughAttrSpelling() 1094 MacroName = PP.getLastMacroWithSpelling(Loc, FallthroughTokens); in getFallthroughAttrSpelling() 1095 if (MacroName.empty() && !PreferClangAttr) in getFallthroughAttrSpelling() 1096 MacroName = PP.getLastMacroWithSpelling(Loc, ClangFallthroughTokens); in getFallthroughAttrSpelling() 1097 if (MacroName.empty()) in getFallthroughAttrSpelling() 1098 MacroName = PreferClangAttr ? "[[clang::fallthrough]]" : "[[fallthrough]]"; in getFallthroughAttrSpelling() 1099 return MacroName; in getFallthroughAttrSpelling()
|
D | SemaCodeComplete.cpp | 2999 unsigned clang::getMacroUsagePriority(StringRef MacroName, in getMacroUsagePriority() argument 3005 if (MacroName.equals("nil") || MacroName.equals("NULL") || in getMacroUsagePriority() 3006 MacroName.equals("Nil")) { in getMacroUsagePriority() 3012 else if (MacroName.equals("YES") || MacroName.equals("NO") || in getMacroUsagePriority() 3013 MacroName.equals("true") || MacroName.equals("false")) in getMacroUsagePriority() 3016 else if (MacroName.equals("bool")) in getMacroUsagePriority()
|
D | SemaChecking.cpp | 8019 StringRef MacroName = Lexer::getImmediateMacroNameForDiagnostics( in DiagnoseNullConversion() local 8021 if (MacroName == "NULL") in DiagnoseNullConversion()
|
/external/clang/lib/Analysis/ |
D | ReachableCode.cpp | 141 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro() local 142 if (MacroName == "YES" || MacroName == "NO") in isExpandedFromConfigurationMacro()
|
/external/clang/lib/AST/ |
D | CommentSema.cpp | 696 StringRef MacroName = PP->getLastMacroWithSpelling(FD->getLocation(), in checkDeprecatedCommand() local 698 if (!MacroName.empty()) in checkDeprecatedCommand() 699 AttributeSpelling = MacroName; in checkDeprecatedCommand()
|
/external/clang/utils/TableGen/ |
D | ClangAttrEmitter.cpp | 1894 const char * const MacroName; member 1932 emitDefaultDefine(OS, Descriptor.MacroName, in emitDefaultDefines() 1933 SuperClass->Descriptor.MacroName); in emitDefaultDefines() 1938 OS << "#undef " << Descriptor.MacroName << "\n"; in emitUndefs() 1946 ::emitAttrList(OS, Descriptor.MacroName, Attrs); in emitAttrList()
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 468 StringRef MacroName = MacroPair.first; in collectMacroDefinitions() local 473 if (MacroNames && !Macros.count(MacroName)) in collectMacroDefinitions() 474 MacroNames->push_back(MacroName); in collectMacroDefinitions() 476 Macros[MacroName] = std::make_pair("", true); in collectMacroDefinitions() 481 if (MacroName.size() == Macro.size()) in collectMacroDefinitions() 489 if (MacroNames && !Macros.count(MacroName)) in collectMacroDefinitions() 490 MacroNames->push_back(MacroName); in collectMacroDefinitions() 491 Macros[MacroName] = std::make_pair(MacroBody, false); in collectMacroDefinitions() 514 StringRef MacroName = ExistingMacroNames[I]; in checkPreprocessorOptions() local 515 std::pair<StringRef, bool> Existing = ExistingMacros[MacroName]; in checkPreprocessorOptions() [all …]
|
/external/clang/include/clang/Sema/ |
D | CodeCompleteConsumer.h | 138 unsigned getMacroUsagePriority(StringRef MacroName,
|
/external/clang/lib/Basic/ |
D | Targets.cpp | 45 static void DefineStd(MacroBuilder &Builder, StringRef MacroName, in DefineStd() argument 47 assert(MacroName[0] != '_' && "Identifier should be in the user's namespace"); in DefineStd() 52 Builder.defineMacro(MacroName); in DefineStd() 55 Builder.defineMacro("__" + MacroName); in DefineStd() 58 Builder.defineMacro("__" + MacroName + "__"); in DefineStd()
|
/external/clang/include/clang/Lex/ |
D | Preprocessor.h | 1800 MacroArgs *ReadFunctionLikeMacroArgs(Token &MacroName, MacroInfo *MI,
|