CodeQL library for C/C++
codeql/cpp-all 0.12.12-dev (changelog, source)
Search

Member predicate Attribute::getName

Gets the name of this attribute.

As examples, this is “noreturn” for __attribute__((__noreturn__)), “fallthrough” for [[clang::fallthrough]], and “dllimport” for __declspec(dllimport).

Note that the name does not include the namespace. For example, the name of [[clang::fallthrough]] is “fallthrough”.

string getName()