Files
codeql/cpp/ql/test/library-tests/attributes/exclusive_locks_required/attributes.ql
2018-08-02 17:53:23 +01:00

12 lines
195 B
Plaintext

import cpp
string attribute(Function f) {
if exists(f.getAnAttribute())
then result = f.getAnAttribute().toString()
else result = "<none>"
}
from Function f
select f, attribute(f)