fix clang_tu.h && clang_complete.cc (#61)

This commit is contained in:
firstlove 2018-08-29 23:33:20 +08:00 committed by Fangrui Song
parent fea457616a
commit ea28e50d0f
2 changed files with 2 additions and 1 deletions

View File

@ -503,7 +503,7 @@ BuildCompilerInstance(CompletionSession &session,
Preamble->Preamble.OverridePreamble(*CI, session.FS, Preamble->Preamble.OverridePreamble(*CI, session.FS,
Bufs.back().get()); Bufs.back().get());
#else #else
Preamble->Preamble.AddImplicitPreamble(*CI, session->FS, Preamble->Preamble.AddImplicitPreamble(*CI, session.FS,
Bufs.back().get()); Bufs.back().get());
#endif #endif
} else { } else {

View File

@ -4,6 +4,7 @@
#pragma once #pragma once
#include "position.h" #include "position.h"
#include <clang/Basic/LangOptions.h>
#include <clang/Basic/SourceManager.h> #include <clang/Basic/SourceManager.h>
#include <stdlib.h> #include <stdlib.h>