aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2022-08-02 11:42:49 -0700
committerErich Keane <erich.keane@intel.com>2022-08-03 06:41:43 -0700
commitfb65b17932e1163adeda943a3a36f9b482b97f47 (patch)
treebc8610642ce10deb70256092a465e5e77fb2a4ca /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent84831bdfedbad8221a529a640d0f4bd9d0e3ba7b (diff)
downloadllvm-fb65b17932e1163adeda943a3a36f9b482b97f47.zip
llvm-fb65b17932e1163adeda943a3a36f9b482b97f47.tar.gz
llvm-fb65b17932e1163adeda943a3a36f9b482b97f47.tar.bz2
[NFCI] Refactor how KeywordStatus is calculated
The getKeywordStatus function is a horrible mess of inter-dependent 'if' statements that depend significantly on the ORDER of the checks. This patch removes the dependency on order by checking each set-flag only once. It does this by looping through each of the set bits, and checks each individual flag for its effect, then combines them at the end. This might slow down startup performance slightly, as there are only a few hundred keywords, and a vast majority will only get checked 1x still. This patch ALSO removes the KEYWORD_CONCEPTS flag, because it has since become synonymous with C++20. Differential Revision: https://reviews.llvm.org/D131007
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
0 files changed, 0 insertions, 0 deletions