forked from qt-creator/qt-creator
Clang: Remove DelayedTemplateParsing settings
It will be use the default which should be provide less errors. Change-Id: I2f5feefe574cbda6cd85f10620dfb75c46a0f7b7 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -46,7 +46,6 @@ public:
|
||||
{
|
||||
compilerInstance.getPreprocessorOpts().DisablePCHValidation = true;
|
||||
compilerInstance.getPreprocessorOpts().AllowPCHWithCompilerErrors = true;
|
||||
compilerInstance.getLangOpts().DelayedTemplateParsing = true;
|
||||
compilerInstance.getDiagnosticOpts().ErrorLimit = 0;
|
||||
std::unique_ptr<llvm::MemoryBuffer> Input = llvm::MemoryBuffer::getMemBuffer(m_fileContent);
|
||||
compilerInstance.getPreprocessorOpts().addRemappedFile(m_filePath, Input.release());
|
||||
|
@@ -101,7 +101,6 @@ newFrontendActionFactory(Factory *consumerFactory,
|
||||
protected:
|
||||
bool BeginInvocation(clang::CompilerInstance &compilerInstance) override
|
||||
{
|
||||
compilerInstance.getLangOpts().DelayedTemplateParsing = false;
|
||||
compilerInstance.getPreprocessorOpts().AllowPCHWithCompilerErrors = true;
|
||||
|
||||
return clang::ASTFrontendAction::BeginInvocation(compilerInstance);
|
||||
|
Reference in New Issue
Block a user