Skip to content

Commit 0592bf0

Browse files
author
Barnabás Domozi
committed
cpp parser: clang FileEntry -> FileEntryRef
1 parent e44de27 commit 0592bf0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

plugins/cpp/parser/include/cppparser/filelocutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class FileLocUtil
9191
if (fid.isInvalid())
9292
return std::string();
9393

94-
const clang::FileEntry* fileEntry = _clangSrcMan.getFileEntryForID(fid);
94+
const clang::OptionalFileEntryRef fileEntry = _clangSrcMan.getFileEntryRefForID(fid);
9595
if (!fileEntry)
9696
return std::string();
9797

plugins/cpp/parser/src/clangastvisitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ class ClangASTVisitor : public clang::RecursiveASTVisitor<ClangASTVisitor>
17351735
clang::DynTypedNodeList parents
17361736
= _astContext.getParents(*expr_);
17371737

1738-
const clang::ast_type_traits::DynTypedNode& parent = parents[0];
1738+
const clang::DynTypedNode& parent = parents[0];
17391739

17401740
if (const clang::BinaryOperator* op = parent.get<clang::BinaryOperator>())
17411741
{

plugins/cpp/parser/src/ppincludecallback.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ void PPIncludeCallback::InclusionDirective(
6161
clang::StringRef fileName_,
6262
bool,
6363
clang::CharSourceRange filenameRange_,
64-
const clang::FileEntry*,
64+
clang::OptionalFileEntryRef,
6565
clang::StringRef searchPath_,
6666
clang::StringRef,
6767
const clang::Module*,
68+
bool,
6869
clang::SrcMgr::CharacteristicKind)
6970
{
7071
if (searchPath_.empty())

plugins/cpp/parser/src/ppincludecallback.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ class PPIncludeCallback : public clang::PPCallbacks
3838
clang::StringRef FileName,
3939
bool IsAngled,
4040
clang::CharSourceRange FilenameRange,
41-
const clang::FileEntry *File,
41+
clang::OptionalFileEntryRef File,
4242
clang::StringRef SearchPath,
4343
clang::StringRef RelativePath,
4444
const clang::Module *Imported,
45+
bool ModuleImported,
4546
clang::SrcMgr::CharacteristicKind FileType) override;
4647

4748
private:

0 commit comments

Comments
 (0)