Home
last modified time | relevance | path

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

/external/clang/lib/Frontend/
DInitPreprocessor.cpp45 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 …]
DDiagnosticRenderer.cpp436 StringRef MacroName = in emitSingleMacroExpansion() local
438 if (MacroName.empty()) in emitSingleMacroExpansion()
441 Message << "expanded from macro '" << MacroName << "'"; in emitSingleMacroExpansion()
/external/clang/lib/Lex/
DPPMacroExpansion.cpp706 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 …]
DPragma.cpp900 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()
DPPDirectives.cpp2218 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/
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.cpp327 StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM, in checkForGCDOrXPC() local
329 bool isGCDOrXPC = llvm::StringSwitch<bool>(MacroName) in checkForGCDOrXPC()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp492 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/
DAnalysisBasedWarnings.cpp1090 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()
DSemaCodeComplete.cpp2999 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()
DSemaChecking.cpp8019 StringRef MacroName = Lexer::getImmediateMacroNameForDiagnostics( in DiagnoseNullConversion() local
8021 if (MacroName == "NULL") in DiagnoseNullConversion()
/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.cpp696 StringRef MacroName = PP->getLastMacroWithSpelling(FD->getLocation(), in checkDeprecatedCommand() local
698 if (!MacroName.empty()) in checkDeprecatedCommand()
699 AttributeSpelling = MacroName; in checkDeprecatedCommand()
/external/clang/utils/TableGen/
DClangAttrEmitter.cpp1894 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/
DASTReader.cpp468 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/
DCodeCompleteConsumer.h138 unsigned getMacroUsagePriority(StringRef MacroName,
/external/clang/lib/Basic/
DTargets.cpp45 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/
DPreprocessor.h1800 MacroArgs *ReadFunctionLikeMacroArgs(Token &MacroName, MacroInfo *MI,