diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2018-08-26 06:27:23 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2018-08-26 06:27:23 +0000 |
commit | 1e8f9cd0c087fd7f52abacefe8d049639bbe6d09 (patch) | |
tree | f2907b12c82a0cbd8a78cc0f93157f893f262fc7 /include/clang/Index | |
parent | 1bdec838c54117d9befe6dfcd3336a0ba5de9e0d (diff) | |
download | clang-1e8f9cd0c087fd7f52abacefe8d049639bbe6d09.tar.gz |
[index] Introduce 'ProtocolInterface' as part of SymbolPropertySet
This is useful to directly infer that a method or property is from a protocol interface
at the point of the symbol occurrences.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Index')
-rw-r--r-- | include/clang/Index/IndexSymbol.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Index/IndexSymbol.h b/include/clang/Index/IndexSymbol.h index 068796141d..8aaaa69545 100644 --- a/include/clang/Index/IndexSymbol.h +++ b/include/clang/Index/IndexSymbol.h @@ -75,7 +75,7 @@ enum class SymbolSubKind : uint8_t { UsingValue, }; -typedef uint8_t SymbolPropertySet; +typedef uint16_t SymbolPropertySet; /// Set of properties that provide additional info about a symbol. enum class SymbolProperty : SymbolPropertySet { Generic = 1 << 0, @@ -86,8 +86,10 @@ enum class SymbolProperty : SymbolPropertySet { IBOutletCollection = 1 << 5, GKInspectable = 1 << 6, Local = 1 << 7, + /// Symbol is part of a protocol interface. + ProtocolInterface = 1 << 8, }; -static const unsigned SymbolPropertyBitNum = 8; +static const unsigned SymbolPropertyBitNum = 9; /// Set of roles that are attributed to symbol occurrences. /// |