aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2025-02-18 09:02:28 -0800
committerGitHub <noreply@github.com>2025-02-18 09:02:28 -0800
commitca0c84dbfd22ef060abe62ce34a51a6e6c2ceedb (patch)
treecf05c892b2665ef9d621215c96a9328b9b812d1e /clang/lib/AST/DeclBase.cpp
parent7b89c41e41ce1a8832130ce9bfa24b216bfe327b (diff)
downloadllvm-ca0c84dbfd22ef060abe62ce34a51a6e6c2ceedb.zip
llvm-ca0c84dbfd22ef060abe62ce34a51a6e6c2ceedb.tar.gz
llvm-ca0c84dbfd22ef060abe62ce34a51a6e6c2ceedb.tar.bz2
[NFC] [clang] make isFlexibleArrayMemberLike Ctx const (#126656)
it is not used mutably
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index fc16448..ab9d486 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -438,7 +438,7 @@ bool Decl::isFileContextDecl() const {
}
bool Decl::isFlexibleArrayMemberLike(
- ASTContext &Ctx, const Decl *D, QualType Ty,
+ const ASTContext &Ctx, const Decl *D, QualType Ty,
LangOptions::StrictFlexArraysLevelKind StrictFlexArraysLevel,
bool IgnoreTemplateOrMacroSubstitution) {
// For compatibility with existing code, we treat arrays of length 0 or