Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/AttrDocTable.cpp
Show All 15 Lines | |||||
#include "AttrDocTable.inc" | #include "AttrDocTable.inc" | ||||
static const llvm::StringRef AttrDoc[] = { | static const llvm::StringRef AttrDoc[] = { | ||||
#define ATTR(NAME) AttrDoc_##NAME, | #define ATTR(NAME) AttrDoc_##NAME, | ||||
#include "clang/Basic/AttrList.inc" | #include "clang/Basic/AttrList.inc" | ||||
}; | }; | ||||
llvm::StringRef clang::Attr::getDocumentation(clang::attr::Kind K) { | llvm::StringRef clang::Attr::getDocumentation(clang::attr::Kind K) { | ||||
if(K < llvm::array_lengthof(AttrDoc)) | if (K < std::size(AttrDoc)) | ||||
return AttrDoc[K]; | return AttrDoc[K]; | ||||
return ""; | return ""; | ||||
} | } |