aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/AttrDocTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/AttrDocTable.cpp')
-rw-r--r--clang/lib/AST/AttrDocTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/AttrDocTable.cpp b/clang/lib/AST/AttrDocTable.cpp
index 3bfedac8b8f1..df7e3d63a6c3 100644
--- a/clang/lib/AST/AttrDocTable.cpp
+++ b/clang/lib/AST/AttrDocTable.cpp
@@ -21,7 +21,7 @@ static const llvm::StringRef AttrDoc[] = {
};
llvm::StringRef clang::Attr::getDocumentation(clang::attr::Kind K) {
- if(K < llvm::array_lengthof(AttrDoc))
+ if (K < std::size(AttrDoc))
return AttrDoc[K];
return "";
}