- Rename methods to clearly signal when they only deal with ASCII
- Simplify the parsing of identifier
- use start/continue instead of head/body for consistency with
Unicode terminology
Paths
| Differential D108308
Cleanup identifier parsing. ClosedPublic Authored by cor3ntin on Aug 18 2021, 10:39 AM.
Details
Summary
Unicode terminology
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 18 2021, 10:39 AM cor3ntin retitled this revision from Cleanup identifier parsing. to [WIP] Cleanup identifier parsing..Aug 18 2021, 10:44 AM Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 18 2021, 10:44 AM Comment Actions @aaron.ballman Let me know what you think. This makes it apparent that some places in tools, maybe header names or module parsing too only check for ASCII identifiers when they may want to check for Unicode, This is not addressed here. Comment Actions In general, I'm in favor of these changes. They help identify (pun *totally* intended) where we're improperly expecting ASCII identifiers in places, which can hopefully be addressed in follow-up work. @rsmith, do you have any concerns with this direction? Can you remove the [WIP] from the title so it's clear that this is no longer in progress? Also, I'd recommend slapping an NFC in the title somewhere to make it clear there's no functional changes intended.
Comment Actions Fix comments following Aaron's feedback, remove cor3ntin retitled this revision from [WIP] Cleanup identifier parsing. to Cleanup identifier parsing..Aug 25 2021, 2:54 PM Comment Actions The changes LGTM, modulo a commenting request. Let's wait a bit before landing in case @rsmith has concerns.
This revision is now accepted and ready to land.Aug 30 2021, 5:15 AM
Revision Contents
Diff 369446 clang-tools-extra/clang-include-fixer/IncludeFixer.cpp
clang-tools-extra/clang-tidy/google/IntegerTypesCheck.cpp
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/refactor/Rename.cpp
clang/include/clang/Basic/CharInfo.h
clang/include/clang/Lex/Lexer.h
clang/lib/ARCMigrate/ObjCMT.cpp
clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
clang/lib/AST/MicrosoftMangle.cpp
clang/lib/Basic/Module.cpp
clang/lib/Edit/EditedSource.cpp
clang/lib/Frontend/LayoutOverrideSource.cpp
clang/lib/Frontend/Rewrite/FrontendActions.cpp
clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
clang/lib/Lex/Lexer.cpp
clang/lib/Lex/ModuleMap.cpp
clang/lib/Sema/SemaAvailability.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaExprObjC.cpp
clang/lib/Sema/SemaType.cpp
clang/lib/Tooling/Transformer/Parsing.cpp
clang/unittests/Basic/CharInfoTest.cpp
|
Something like this then?