JSONCompilationDatabase.cpp - cleanup key parsing error checks. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Sep 2020 12:55:04 +0000 (13:55 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Sep 2020 12:55:29 +0000 (13:55 +0100)
commita735d6eae2847b039d12c75d4c794862dad59bc1
treedd2a86661fe6a9ae1ac1537f88fa679a6990b1e6
parent2990518b0324eedca455b2bbf93b69f287dd6d52
JSONCompilationDatabase.cpp - cleanup key parsing error checks. NFCI.

Merge the key + sequence/value checks with the key handling code.

Reduces the number of key string comparisons and avoids a number of clang static analyzer null dereference warnings.
clang/lib/Tooling/JSONCompilationDatabase.cpp