I found there are chances to do simplify the codes further after I landed D123837. This one should be NFC only.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaLookup.cpp | ||
---|---|---|
1573–1581 | The definition of GlobalModuleFragment is The global module fragment of the current translation unit. So I feel it more natural to use this and I don't need to judge if it is GlobalModuleFragment anymore. The original looks more hack a little bit. | |
1581 | And we don't need to check module private specially. So that we could filter more cases to avoid string comparison. | |
1784–1792 | LLVM prefer shorter indentation. (Although I repeat ModulePrivate here, I feel the current one is better) | |
1787–1804 | After D123837 is landed, the following two checks wouldn't be hit any more. |
sorry for being slow, concentrating on module initialisers!
this LGTM (but we can still probably make the visibility code cleaner - perhaps after we get the main functionality installed).
The definition of GlobalModuleFragment is The global module fragment of the current translation unit. So I feel it more natural to use this and I don't need to judge if it is GlobalModuleFragment anymore. The original looks more hack a little bit.