Identifiers with __ anywhere are reserved. I picked this up via the bugprone-reserved-identifier clang-tidy check but -Wreserved-identifier will also flag these uses as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yeah, we shouldn't be using these. Personally, I think the names are now unnecessarily long, and I'd go with something shorter. E.g. replacing the double underscore (btw, in python land they abbreviate that to "dunder", so that would be another option) with a single (g_double_underscore_kCFBooleanFalse -> g_kCFBooleanFalse), but I don't think this is worth bikeshedding over.
lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp | ||
---|---|---|
370 | this line is now way above the length limit. |
Comment Actions
Nice.
lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp | ||
---|---|---|
261 | This one also contains a double __? |
Comment Actions
Assuming all issues have been fixed, can you add this clang-tidy check to the .clang-tidy file in the root of the repository? That should make it less likely this regresses again in the future.
This one also contains a double __?