/external/llvm-project/clang/include/clang/Basic/ |
D | SourceManager.h | 351 unsigned SpellingLoc; variable 366 SourceLocation SpellLoc = SourceLocation::getFromRawEncoding(SpellingLoc); in getSpellingLoc() 409 static ExpansionInfo create(SourceLocation SpellingLoc, SourceLocation Start, 413 X.SpellingLoc = SpellingLoc.getRawEncoding(); 439 static ExpansionInfo createForMacroArg(SourceLocation SpellingLoc, in createForMacroArg() argument 444 return create(SpellingLoc, ExpansionLoc, SourceLocation()); in createForMacroArg() 452 static ExpansionInfo createForTokenSplit(SourceLocation SpellingLoc, in createForTokenSplit() argument 455 return create(SpellingLoc, Start, End, false); in createForTokenSplit() 921 SourceLocation createTokenSplitLoc(SourceLocation SpellingLoc, 1092 FileID getFileID(SourceLocation SpellingLoc) const { in getFileID() argument [all …]
|
/external/clang/include/clang/Basic/ |
D | SourceManager.h | 305 unsigned SpellingLoc; variable 317 return SourceLocation::getFromRawEncoding(SpellingLoc); in getSpellingLoc() 354 static ExpansionInfo create(SourceLocation SpellingLoc, in create() argument 357 X.SpellingLoc = SpellingLoc.getRawEncoding(); in create() 382 static ExpansionInfo createForMacroArg(SourceLocation SpellingLoc, in createForMacroArg() argument 387 return create(SpellingLoc, ExpansionLoc, SourceLocation()); in createForMacroArg() 987 FileID getFileID(SourceLocation SpellingLoc) const { in getFileID() argument 988 unsigned SLocOffset = SpellingLoc.getOffset(); in getFileID() 998 StringRef getFilename(SourceLocation SpellingLoc) const { in getFilename() argument 999 if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc))) in getFilename() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | FileExtensionsUtils.cpp | 31 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in isSpellingLocInHeaderFile() local 32 return isFileExtension(SM.getFilename(SpellingLoc), HeaderFileExtensions); in isSpellingLocInHeaderFile()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | UppercaseLiteralSuffixCheck.cpp | 71 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in GetMacroAwareLocation() local 72 if (SpellingLoc.isInvalid()) in GetMacroAwareLocation() 74 return SpellingLoc; in GetMacroAwareLocation()
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | SymbolCollector.cpp | 422 auto SpellingLoc = SM.getSpellingLoc(Loc); in handleMacroOccurrence() local 429 (Opts.RefsInHeaders || SM.getFileID(SpellingLoc) == SM.getMainFileID())) in handleMacroOccurrence() 446 SM.getFileID(SpellingLoc) == SM.getMainFileID()) in handleMacroOccurrence()
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 620 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc, in createMacroArgExpansionLoc() argument 623 ExpansionInfo Info = ExpansionInfo::createForMacroArg(SpellingLoc, in createMacroArgExpansionLoc() 629 SourceManager::createExpansionLoc(SourceLocation SpellingLoc, in createExpansionLoc() argument 637 SpellingLoc, ExpansionLocStart, ExpansionLocEnd, ExpansionIsTokenRange); in createExpansionLoc() 1008 StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { in getFilename() 1009 if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc))) in getFilename()
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 428 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in emitSingleMacroExpansion() local 443 emitDiagnostic(SpellingLoc, DiagnosticsEngine::Note, Message.str(), in emitSingleMacroExpansion()
|
/external/llvm-project/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 433 FullSourceLoc SpellingLoc = Loc.getSpellingLoc(); in emitSingleMacroExpansion() local 448 emitDiagnostic(SpellingLoc, DiagnosticsEngine::Note, Message.str(), in emitSingleMacroExpansion()
|
/external/clang/lib/Lex/ |
D | Lexer.cpp | 164 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer() argument 171 FileID SpellingFID = SM.getFileID(SpellingLoc); in Create_PragmaLexer() 178 const char *StrData = SM.getCharacterData(SpellingLoc); in Create_PragmaLexer() 1057 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc() local 1058 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc() 1065 return SM.createExpansionLoc(SpellingLoc, II.first, II.second, TokLen); in GetMappedTokenLoc()
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 120 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
|
/external/llvm-project/clang/lib/Lex/ |
D | Lexer.cpp | 189 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer() argument 196 FileID SpellingFID = SM.getFileID(SpellingLoc); in Create_PragmaLexer() 203 const char *StrData = SM.getCharacterData(SpellingLoc); in Create_PragmaLexer() 1117 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc() local 1118 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc() 1124 return SM.createExpansionLoc(SpellingLoc, II.getBegin(), II.getEnd(), TokLen); in GetMappedTokenLoc()
|
D | Preprocessor.cpp | 507 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in SplitToken() local 508 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellingLoc); in SplitToken()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | Lexer.h | 165 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Selection.cpp | 175 bool isFirstExpansion(FileID Target, SourceLocation SpellingLoc, in isFirstExpansion() argument 177 SourceLocation Prev = SpellingLoc; in isFirstExpansion()
|
D | XRefs.cpp | 426 bool tokenSpelledAt(SourceLocation SpellingLoc, const syntax::TokenBuffer &TB) { in tokenSpelledAt() argument 428 TB.sourceManager().getMacroArgExpandedLocation(SpellingLoc)); in tokenSpelledAt()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 591 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc, in createMacroArgExpansionLoc() argument 594 ExpansionInfo Info = ExpansionInfo::createForMacroArg(SpellingLoc, in createMacroArgExpansionLoc() 600 SourceManager::createExpansionLoc(SourceLocation SpellingLoc, in createExpansionLoc() argument 606 ExpansionInfo Info = ExpansionInfo::create(SpellingLoc, ExpansionLocStart, in createExpansionLoc()
|
/external/llvm-project/clang/lib/AST/ |
D | TextNodeDumper.cpp | 580 SourceLocation SpellingLoc = SM->getSpellingLoc(Loc); in dumpLocation() local 584 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation()
|
/external/clang/lib/AST/ |
D | ASTDumper.cpp | 593 SourceLocation SpellingLoc = SM->getSpellingLoc(Loc); in dumpLocation() local 597 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation()
|
/external/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 3637 SourceLocation SpellingLoc = in TryParseCXX11AttributeIdentifier() local 3639 StringRef Spelling = PP.getSpelling(SpellingLoc, SpellingBuf); in TryParseCXX11AttributeIdentifier()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 4031 SourceLocation SpellingLoc = in TryParseCXX11AttributeIdentifier() local 4033 StringRef Spelling = PP.getSpelling(SpellingLoc, SpellingBuf); in TryParseCXX11AttributeIdentifier()
|
/external/clang/lib/Sema/ |
D | SemaDeclCXX.cpp | 1951 SourceLocation SpellingLoc = Loc; in DiagnoseAbsenceOfOverrideControl() local 1953 SpellingLoc = getSourceManager().getImmediateExpansionRange(Loc).first; in DiagnoseAbsenceOfOverrideControl() 1954 SpellingLoc = getSourceManager().getSpellingLoc(SpellingLoc); in DiagnoseAbsenceOfOverrideControl() 1955 if (SpellingLoc.isValid() && getSourceManager().isInSystemHeader(SpellingLoc)) in DiagnoseAbsenceOfOverrideControl()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDeclCXX.cpp | 3081 SourceLocation SpellingLoc = Loc; in DiagnoseAbsenceOfOverrideControl() local 3083 SpellingLoc = getSourceManager().getImmediateExpansionRange(Loc).getBegin(); in DiagnoseAbsenceOfOverrideControl() 3084 SpellingLoc = getSourceManager().getSpellingLoc(SpellingLoc); in DiagnoseAbsenceOfOverrideControl() 3085 if (SpellingLoc.isValid() && getSourceManager().isInSystemHeader(SpellingLoc)) in DiagnoseAbsenceOfOverrideControl()
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 1329 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local 1330 SourceMgr.createExpansionLoc(SpellingLoc, in ReadSLocEntry()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReader.cpp | 1568 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local 1569 SourceMgr.createExpansionLoc(SpellingLoc, in ReadSLocEntry()
|