diff options
Diffstat (limited to 'clang/lib/AST/TypeLoc.cpp')
| -rw-r--r-- | clang/lib/AST/TypeLoc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/TypeLoc.cpp b/clang/lib/AST/TypeLoc.cpp index 13aa54c48f66..cf5e2f979230 100644 --- a/clang/lib/AST/TypeLoc.cpp +++ b/clang/lib/AST/TypeLoc.cpp @@ -507,6 +507,10 @@ SourceRange AttributedTypeLoc::getLocalSourceRange() const { return getAttr() ? getAttr()->getRange() : SourceRange(); } +SourceRange BTFTagAttributedTypeLoc::getLocalSourceRange() const { + return getAttr() ? getAttr()->getRange() : SourceRange(); +} + void TypeOfTypeLoc::initializeLocal(ASTContext &Context, SourceLocation Loc) { TypeofLikeTypeLoc<TypeOfTypeLoc, TypeOfType, TypeOfTypeLocInfo> @@ -683,6 +687,10 @@ namespace { return Visit(T.getModifiedLoc()); } + TypeLoc VisitBTFTagAttributedTypeLoc(BTFTagAttributedTypeLoc T) { + return Visit(T.getWrappedLoc()); + } + TypeLoc VisitMacroQualifiedTypeLoc(MacroQualifiedTypeLoc T) { return Visit(T.getInnerLoc()); } |
