/external/clang/include/clang/Rewrite/ |
HTMLRewrite.h | 53 void EscapeText(Rewriter& R, FileID FID, 63 void AddLineNumbers(Rewriter& R, FileID FID); 65 void AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, 70 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP); 76 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP);
|
Rewriter.h | 268 RewriteBuffer &getEditBuffer(FileID FID); 272 const RewriteBuffer *getRewriteBufferFor(FileID FID) const { 274 RewriteBuffers.find(FID); 283 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
|
TokenRewriter.h | 51 TokenRewriter(FileID FID, SourceManager &SM, const LangOptions &LO);
|
/external/clang/lib/Rewrite/ |
HTMLPrint.cpp | 66 FileID FID = R.getSourceMgr().getMainFileID(); 67 const FileEntry* Entry = R.getSourceMgr().getFileEntryForID(FID); 75 Name = R.getSourceMgr().getBuffer(FID)->getBufferIdentifier(); 77 html::AddLineNumbers(R, FID); 78 html::AddHeaderFooterInternalBuiltinCSS(R, FID, Name); 84 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP); 85 if (HighlightMacros) html::HighlightMacros(R, FID, PP); 86 html::EscapeText(R, FID, false, true); 89 const RewriteBuffer &RewriteBuf = R.getEditBuffer(FID);
|
Rewriter.cpp | 207 FileID &FID) const { 210 FID = V.first; 217 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { 219 RewriteBuffers.lower_bound(FID); 220 if (I != RewriteBuffers.end() && I->first == FID) 222 I = RewriteBuffers.insert(I, std::make_pair(FID, RewriteBuffer())); 224 StringRef MB = SourceMgr->getBufferData(FID); 235 FileID FID; 236 unsigned StartOffs = getLocationOffsetAndFileID(Loc, FID); 240 StringRef MB = SourceMgr->getBufferData(FID); [all...] |
HTMLRewrite.cpp | 38 FileID FID = SM.getFileID(B); 39 assert(SM.getFileID(E) == FID && "B/E not in the same file!"); 48 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); 52 HighlightRange(R.getEditBuffer(FID), BOffset, EOffset, 107 void html::EscapeText(Rewriter &R, FileID FID, 110 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); 116 RewriteBuffer &RB = R.getEditBuffer(FID); 228 void html::AddLineNumbers(Rewriter& R, FileID FID) { 230 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); 234 RewriteBuffer &RB = R.getEditBuffer(FID); [all...] |
TokenRewriter.cpp | 21 TokenRewriter::TokenRewriter(FileID FID, SourceManager &SM, 26 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); 27 Lexer RawLex(FID, FromFile, SM, LangOpts);
|
/external/clang/lib/Lex/ |
ScratchBuffer.cpp | 68 FileID FID = SourceMgr.createFileIDForMemBuffer(Buf); 69 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
|
PreprocessorLexer.cpp | 20 PreprocessorLexer::PreprocessorLexer(Preprocessor *pp, FileID fid) 21 : PP(pp), FID(fid), InitialNumSLocEntries(0),
|
PPLexerChange.cpp | 68 void Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, 77 if (PTHLexer *PL = PTH->CreateLexer(FID)) { 83 // Get the MemoryBuffer for this FID, if it fails, we fail. 86 getSourceManager().getBuffer(FID, Loc, &Invalid); 88 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID); 95 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) { 96 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); 101 EnterSourceFileWithLexer(new Lexer(FID, InputFile, *this), CurDir); 146 FileID FID = CurPPLexer->getFileID(); 147 SourceLocation EnterLoc = SourceMgr.getLocForStartOfFile(FID); [all...] |
PTHLexer.cpp | 39 PTHLexer::PTHLexer(Preprocessor &PP, FileID FID, const unsigned char *D, 41 : PreprocessorLexer(&PP, FID), TokBuf(D), CurPtr(D), LastHashTokPtr(0), 44 FileStartLoc = PP.getSourceManager().getLocForStartOfFile(FID); 590 PTHLexer *PTHManager::CreateLexer(FileID FID) { 591 const FileEntry *FE = PP->getSourceManager().getFileEntryForID(FID); 616 return new PTHLexer(*PP, FID, data, ppcond, *this);
|
/external/clang/include/clang/Basic/ |
SourceManagerInternals.h | 107 void AddLineNote(int FID, unsigned Offset, 109 void AddLineNote(int FID, unsigned Offset, 114 /// FindNearestLineEntry - Find the line entry nearest to FID that is before 115 /// it. If there is no line entry before Offset in FID, return null. 116 const LineEntry *FindNearestLineEntry(int FID, unsigned Offset); 125 void AddEntry(int FID, const std::vector<LineEntry> &Entries);
|
SourceManager.h | 396 /// L/R QueryFID - These are the FID's of the cached query. If these match up 422 /// specified offsets in the LHS/RHS FID's. 704 const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, 707 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid); 719 const llvm::MemoryBuffer *getBuffer(FileID FID, bool *Invalid = 0) const { 721 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid); 735 const FileEntry *getFileEntryForID(FileID FID) const { 737 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &MyInvalid); 753 /// \param FID The file ID whose contents will be returned. 755 StringRef getBufferData(FileID FID, bool *Invalid = 0) const [all...] |
/external/clang/lib/ARCMigrate/ |
PlistReporter.cpp | 25 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); 26 FIDMap::iterator I = FIDs.find(FID); 28 FIDs[FID] = V.size(); 29 V.push_back(FID); 34 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); 35 FIDMap::const_iterator I = FIDs.find(FID);
|
/external/clang/include/clang/Lex/ |
PreprocessorLexer.h | 31 const FileID FID; 73 PreprocessorLexer(Preprocessor *pp, FileID fid); 152 return FID;
|
PTHLexer.h | 64 PTHLexer(Preprocessor& pp, FileID FID, const unsigned char *D,
|
PTHManager.h | 129 PTHLexer *CreateLexer(FileID FID);
|
/external/clang/tools/libclang/ |
CIndexHigh.cpp | 43 FileID FID; 51 FindFileIdRefVisitData(CXTranslationUnit TU, FileID FID, 54 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) { 180 if (LocInfo.first != data->FID) 203 FileID FID = SM.translateFile(File); 205 FindFileIdRefVisitData data(TU, FID, Dcl, 215 if (FID == SM.getMainFileID() && !Unit->isMainFileAST()) { 216 SourceLocation FileLoc = SM.getLocForStartOfFile(FID);
|
/external/clang/lib/StaticAnalyzer/Core/ |
HTMLDiagnostics.cpp | 142 FileID FID; 148 if (FID.isInvalid()) { 149 FID = SMgr.getFileID(L); 150 } else if (SMgr.getFileID(L) != FID) 159 if (!L.isFileID() || SMgr.getFileID(L) != FID) 164 if (!L.isFileID() || SMgr.getFileID(L) != FID) 169 if (FID.isInvalid()) 181 HandlePiece(R, FID, *I, n, max); 185 // unsigned FID = R.getSourceMgr().getMainFileID(); 186 html::EscapeText(R, FID); [all...] |
PlistDiagnostics.cpp | 112 FileID FID = SM->getFileID(SM->getExpansionLoc(L)); 113 FIDMap::iterator I = FIDs.find(FID); 115 FIDs[FID] = V.size(); 116 V.push_back(FID); 121 FileID FID = SM.getFileID(SM.getExpansionLoc(L)); 122 FIDMap::const_iterator I = FIDs.find(FID);
|
/external/clang/lib/Basic/ |
SourceManager.cpp | 188 /// is a #line at the specified FID/Offset location which changes the presumed 190 void LineTableInfo::AddLineNote(int FID, unsigned Offset, 192 std::vector<LineEntry> &Entries = LineEntries[FID]; 221 void LineTableInfo::AddLineNote(int FID, unsigned Offset, 227 std::vector<LineEntry> &Entries = LineEntries[FID]; 244 FindNearestLineEntry(FID, Entries.back().IncludeOffset)) 253 /// FindNearestLineEntry - Find the line entry nearest to FID that is before 254 /// it. If there is no line entry before Offset in FID, return null. 255 const LineEntry *LineTableInfo::FindNearestLineEntry(int FID, 257 const std::vector<LineEntry> &Entries = LineEntries[FID]; [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
ObjCUnusedIVarsChecker.cpp | 91 static void Scan(IvarUsageMap &M, const DeclContext *C, const FileID FID, 97 if (SM.getFileID(L) == FID)
|
/external/clang/include/clang/Frontend/ |
TextDiagnostic.h | 141 unsigned LineNo, FileID FID,
|
/external/clang/lib/Frontend/ |
TextDiagnostic.cpp | 583 FileID FID = SM.getFileID(Loc); 584 if (!FID.isInvalid()) { 585 const FileEntry* FE = SM.getFileEntryForID(FID); 796 // Decompose the location into a FID/Offset pair. 798 FileID FID = LocInfo.first; 803 const char *BufStart = SM.getBufferData(FID, &Invalid).data(); 807 unsigned LineNo = SM.getLineNumber(FID, FileOffset); 808 unsigned ColNo = SM.getColumnNumber(FID, FileOffset); 839 highlightRange(*I, LineNo, FID, SourceLine, CaretLine); [all...] |
VerifyDiagnosticConsumer.cpp | 335 static void FindExpectedDiags(Preprocessor &PP, ExpectedData &ED, FileID FID) { 336 // Create a raw lexer to pull all the comments out of FID. 337 if (FID.isInvalid()) 342 const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID); 343 Lexer RawLex(FID, FromFile, SM, PP.getLangOptions());
|