Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Lex/Lexer.cpp
Show First 20 Lines • Show All 2,273 Lines • ▼ Show 20 Lines | void Lexer::codeCompleteIncludedFile(const char *PathStart, | ||||
// if any. | // if any. | ||||
while (CompletionPoint < BufferEnd) { | while (CompletionPoint < BufferEnd) { | ||||
char Next = *(CompletionPoint + 1); | char Next = *(CompletionPoint + 1); | ||||
if (Next == 0 || Next == '\r' || Next == '\n') | if (Next == 0 || Next == '\r' || Next == '\n') | ||||
break; | break; | ||||
++CompletionPoint; | ++CompletionPoint; | ||||
if (Next == (IsAngled ? '>' : '"')) | if (Next == (IsAngled ? '>' : '"')) | ||||
break; | break; | ||||
if (llvm::is_contained(SlashChars, Next)) | if (SlashChars.contains(Next)) | ||||
break; | break; | ||||
} | } | ||||
PP->setCodeCompletionTokenRange( | PP->setCodeCompletionTokenRange( | ||||
FileLoc.getLocWithOffset(StartOfFilename - BufferStart), | FileLoc.getLocWithOffset(StartOfFilename - BufferStart), | ||||
FileLoc.getLocWithOffset(CompletionPoint - BufferStart)); | FileLoc.getLocWithOffset(CompletionPoint - BufferStart)); | ||||
PP->CodeCompleteIncludedFile(Dir, IsAngled); | PP->CodeCompleteIncludedFile(Dir, IsAngled); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,236 Lines • Show Last 20 Lines |