Browse Source

Updated the C++ parsers to the latest Clang.

pull/146/merge
triton 12 years ago
parent
commit
a40c043d19
  1. 7
      src/CppParser/Parser.cpp
  2. 7
      src/Parser/Parser.cpp

7
src/CppParser/Parser.cpp

@ -2377,8 +2377,11 @@ ParserResult* Parser::ParseHeader(const std::string& File) @@ -2377,8 +2377,11 @@ ParserResult* Parser::ParseHeader(const std::string& File)
// Check that the file is reachable.
const clang::DirectoryLookup *Dir;
if (!C->getPreprocessor().getHeaderSearchInfo().LookupFile(File, /*isAngled*/true,
nullptr, Dir, nullptr, nullptr, nullptr, nullptr))
llvm::SmallVector<const clang::FileEntry*, 0> Includers;
if (!C->getPreprocessor().getHeaderSearchInfo().LookupFile(File,
clang::SourceLocation(), /*isAngled*/true,
nullptr, Dir, Includers, nullptr, nullptr, nullptr))
{
res->Kind = ParserResultKind::FileNotFound;
return res;

7
src/Parser/Parser.cpp

@ -2487,8 +2487,11 @@ ParserResult^ Parser::ParseHeader(const std::string& File) @@ -2487,8 +2487,11 @@ ParserResult^ Parser::ParseHeader(const std::string& File)
// Check that the file is reachable.
const clang::DirectoryLookup *Dir;
if (!C->getPreprocessor().getHeaderSearchInfo().LookupFile(File, /*isAngled*/true,
nullptr, Dir, nullptr, nullptr, nullptr, nullptr))
llvm::SmallVector<const clang::FileEntry*, 0> Includers;
if (!C->getPreprocessor().getHeaderSearchInfo().LookupFile(File,
clang::SourceLocation(), /*isAngled*/true,
nullptr, Dir, Includers, nullptr, nullptr, nullptr))
{
res->Kind = ParserResultKind::FileNotFound;
return res;

Loading…
Cancel
Save