aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-10-20 16:01:01 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-10-20 16:25:33 +0300
commit6487ffafd1dd5ab81c440dde46163218a85d90b5 (patch)
tree446233a174e6c936e7809422d0ab785e71fd636a /clang/lib/Basic/SourceLocation.cpp
parent7c516504a161ad2eff1837fb9b816322455ca330 (diff)
downloadllvm-6487ffafd1dd5ab81c440dde46163218a85d90b5.zip
llvm-6487ffafd1dd5ab81c440dde46163218a85d90b5.tar.gz
llvm-6487ffafd1dd5ab81c440dde46163218a85d90b5.tar.bz2
Reland "[yaml2obj][ELF] - Simplify the code that performs sections validation."
This reverts commit 1b589f4d4db27e3fcd81fdc5abeb9407753ab790 and relands the D89463 with the fix: update `MappingTraits<FileFilter>::validate()` in ClangTidyOptions.cpp to match the new signature (change the return type to "std::string" from "StringRef"). Original commit message: This: Changes the return type of MappingTraits<T>>::validate to std::string instead of StringRef. It allows to create more complex error messages. It introduces std::vector<std::pair<StringRef, bool>> getEntries(): a new virtual method of Section, which is the base class for all sections. It returns names of special section specific keys (e.g. "Entries") and flags that says if them exist in a YAML. The code in validate() uses this list of entries descriptions to generalize validation. This approach was discussed in the D89039 thread. Differential revision: https://reviews.llvm.org/D89463
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
0 files changed, 0 insertions, 0 deletions