[PATCH] D141324: [clang] extend external_source_symbol attribute with the USR clause
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 18 12:30:25 PST 2023
erichkeane added inline comments.
================
Comment at: clang/include/clang/Basic/AttrDocs.td:1755
+ String that specifies a unified symbol resolution (USR) value for this
+ declaration. USR string uniquely identifies this particular declaration, and
+ is typically used when constructing an index of a codebase.
----------------
================
Comment at: clang/include/clang/Basic/AttrDocs.td:1762
+ When not specified, Clang's indexer will use the Clang USR for this symbol.
+ User can query to see if Clang supports the use of the ``USR`` clause in
+ the ``external_source_symbol`` attribute with
----------------
================
Comment at: clang/include/clang/Basic/AttrDocs.td:1764
+ the ``external_source_symbol`` attribute with
+ ``__has_attribute(external_source_symbol_with_usr)``.
+
----------------
I don't think we can do this. __has_attribute needs to take the actual name of the attribute.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141324/new/
https://reviews.llvm.org/D141324
More information about the cfe-commits
mailing list