[libcxx-commits] [PATCH] D145508: [libc++] Reject standard attributes which are extensions in libcpp-uglify-attributes
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 7 08:04:30 PST 2023
philnik added inline comments.
================
Comment at: libcxx/test/tools/clang_tidy_checks/uglify_attributes.cpp:86
std::optional<std::string> getUglyfiedCXX11Attr(const clang::Attr& attr) {
- // Don't try to fix attributes with `using` in them.
- if (std::ranges::search(std::string_view(attr.getSpelling()), std::string_view("::")).empty())
- return std::nullopt;
+ // TODO: Don't try to fix attributes with `using` in them.
----------------
The old way is fundamentally broken. IMO it's better to produce slightly wrong hints in an edge case instead of never producing hints.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145508/new/
https://reviews.llvm.org/D145508
More information about the libcxx-commits
mailing list