Searched refs:MacroName (Results 1 – 9 of 9) sorted by relevance
/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 37 StringRef MacroName = MacroPair.first; in DefineBuiltinMacro() local 39 if (MacroName.size() != Macro.size()) { in DefineBuiltinMacro() 44 << MacroName; in DefineBuiltinMacro() 45 Builder.defineMacro(MacroName, MacroBody.substr(0, End)); in DefineBuiltinMacro() 156 static void DefineTypeSize(StringRef MacroName, unsigned TypeWidth, in DefineTypeSize() argument 161 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix); in DefineTypeSize() 166 static void DefineTypeSize(StringRef MacroName, TargetInfo::IntType Ty, in DefineTypeSize() argument 168 DefineTypeSize(MacroName, TI.getTypeWidth(Ty), TI.getTypeConstantSuffix(Ty), in DefineTypeSize() 172 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty, in DefineType() argument 174 Builder.defineMacro(MacroName, TargetInfo::getTypeName(Ty)); in DefineType() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransRetainReleaseDealloc.cpp | 175 StringRef MacroName = Lexer::getImmediateMacroName(Loc, SM, in checkForGCDOrXPC() local 177 bool isGCDOrXPC = llvm::StringSwitch<bool>(MacroName) in checkForGCDOrXPC()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 444 const char* MacroName = L.getDecomposedLoc().second + BufferInfo.data(); in HandlePiece() local 446 MacroName, BufferInfo.end()); in HandlePiece() 451 os << MacroName[i]; in HandlePiece()
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 334 MacroArgs *Preprocessor::ReadFunctionLikeMacroArgs(Token &MacroName, in ReadFunctionLikeMacroArgs() argument 372 Diag(MacroName, diag::err_unterm_macro_invoc); in ReadFunctionLikeMacroArgs() 374 MacroName = Tok; in ReadFunctionLikeMacroArgs() 407 CodeComplete->CodeCompleteMacroArgument(MacroName.getIdentifierInfo(), in ReadFunctionLikeMacroArgs() 505 Diag(MacroName, diag::err_too_many_args_in_macro_invoc); in ReadFunctionLikeMacroArgs()
|
/external/clang/lib/Basic/ |
D | Targets.cpp | 41 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/Sema/ |
D | CodeCompleteConsumer.h | 134 unsigned getMacroUsagePriority(StringRef MacroName,
|
/external/clang/include/clang/Lex/ |
D | Preprocessor.h | 1183 MacroArgs *ReadFunctionLikeMacroArgs(Token &MacroName, MacroInfo *MI,
|
/external/clang/lib/Sema/ |
D | SemaCodeComplete.cpp | 2781 unsigned clang::getMacroUsagePriority(StringRef MacroName, in getMacroUsagePriority() argument 2787 if (MacroName.equals("nil") || MacroName.equals("NULL") || in getMacroUsagePriority() 2788 MacroName.equals("Nil")) { in getMacroUsagePriority() 2794 else if (MacroName.equals("YES") || MacroName.equals("NO") || in getMacroUsagePriority() 2795 MacroName.equals("true") || MacroName.equals("false")) in getMacroUsagePriority() 2798 else if (MacroName.equals("bool")) in getMacroUsagePriority()
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 291 StringRef MacroName = Missing.slice(StartOfMacroName, EndOfMacroName); in ReadPredefinesBuffer() local 295 std::string MacroDefStart = "#define " + MacroName.str(); in ReadPredefinesBuffer() 319 << MacroName; in ReadPredefinesBuffer() 328 Reader.Diag(PCHMissingLoc, diag::note_pch_macro_defined_as) << MacroName; in ReadPredefinesBuffer() 379 StringRef MacroName = Extra.slice(StartOfMacroName, EndOfMacroName); in ReadPredefinesBuffer() local 384 if (IdentifierInfo *II = Reader.get(MacroName)) { in ReadPredefinesBuffer()
|