forked from OSchip/llvm-project
Frontend: Remove unused parameter from ASTUnit::LoadFromCompilerInvocationAction, NFC
Drop `IncludeBriefCommentsInCodeCompletion` since it is always `false`. Differential Revision: https://reviews.llvm.org/D91295
This commit is contained in:
parent
a083b28a31
commit
cfde3edeae
|
@ -756,7 +756,6 @@ public:
|
|||
CaptureDiagsKind CaptureDiagnostics = CaptureDiagsKind::None,
|
||||
unsigned PrecompilePreambleAfterNParses = 0,
|
||||
bool CacheCodeCompletionResults = false,
|
||||
bool IncludeBriefCommentsInCodeCompletion = false,
|
||||
bool UserFilesAreVolatile = false,
|
||||
std::unique_ptr<ASTUnit> *ErrAST = nullptr);
|
||||
|
||||
|
|
|
@ -1520,8 +1520,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocationAction(
|
|||
ASTUnit *Unit, bool Persistent, StringRef ResourceFilesPath,
|
||||
bool OnlyLocalDecls, CaptureDiagsKind CaptureDiagnostics,
|
||||
unsigned PrecompilePreambleAfterNParses, bool CacheCodeCompletionResults,
|
||||
bool IncludeBriefCommentsInCodeCompletion, bool UserFilesAreVolatile,
|
||||
std::unique_ptr<ASTUnit> *ErrAST) {
|
||||
bool UserFilesAreVolatile, std::unique_ptr<ASTUnit> *ErrAST) {
|
||||
assert(CI && "A CompilerInvocation is required");
|
||||
|
||||
std::unique_ptr<ASTUnit> OwnAST;
|
||||
|
@ -1544,8 +1543,7 @@ ASTUnit *ASTUnit::LoadFromCompilerInvocationAction(
|
|||
AST->PreambleRebuildCountdown = PrecompilePreambleAfterNParses;
|
||||
AST->TUKind = Action ? Action->getTranslationUnitKind() : TU_Complete;
|
||||
AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults;
|
||||
AST->IncludeBriefCommentsInCodeCompletion
|
||||
= IncludeBriefCommentsInCodeCompletion;
|
||||
AST->IncludeBriefCommentsInCodeCompletion = false;
|
||||
|
||||
// Recover resources if we crash before exiting this method.
|
||||
llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit>
|
||||
|
|
|
@ -617,9 +617,7 @@ static CXErrorCode clang_indexSourceFile_Impl(
|
|||
std::move(CInvok), CXXIdx->getPCHContainerOperations(), Diags,
|
||||
IndexAction.get(), UPtr, Persistent, CXXIdx->getClangResourcesPath(),
|
||||
OnlyLocalDecls, CaptureDiagnostics, PrecompilePreambleAfterNParses,
|
||||
CacheCodeCompletionResults,
|
||||
/*IncludeBriefCommentsInCodeCompletion=*/false,
|
||||
/*UserFilesAreVolatile=*/true);
|
||||
CacheCodeCompletionResults, /*UserFilesAreVolatile=*/true);
|
||||
if (DiagTrap.hasErrorOccurred() && CXXIdx->getDisplayDiagnostics())
|
||||
printDiagsToStderr(UPtr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue