These methods abstract away Error handling when trying to read options that can't be parsed by logging the error automatically and returning None.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clang-tidy/ClangTidyCheck.cpp | ||
---|---|---|
221 | Is this specialization defined only because parsing a string option can never fail? I'd let this special case behavior fall out of the primary template if possible. | |
clang-tools-extra/clang-tidy/ClangTidyCheck.h | ||
485 | "logIfOptionParsingError" to express the conditionality of behavior? |
clang-tools-extra/clang-tidy/ClangTidyCheck.cpp | ||
---|---|---|
221 | It's because the call to get that returns a std::string isn't a template. |
"logIfOptionParsingError" to express the conditionality of behavior?