This is an archive of the discontinued LLVM Phabricator instance.

[clang-repl] Disambiguate global namespace identifiers
ClosedPublic

Authored by Hahnfeld on Aug 9 2023, 1:43 AM.

Details

Summary

A double colon starts an identifier name in the global namespace and must be tentatively parsed as such.

Diff Detail

Event Timeline

Hahnfeld created this revision.Aug 9 2023, 1:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 1:43 AM
Hahnfeld requested review of this revision.Aug 9 2023, 1:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2023, 1:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
v.g.vassilev added inline comments.Aug 9 2023, 2:14 AM
clang/test/Interpreter/global-namespace-disambiguate.cpp
6 ↗(On Diff #548514)

Can we add this test to disambiguate-decl-stmt.cpp instead where we track these things?

Hahnfeld updated this revision to Diff 548562.Aug 9 2023, 4:30 AM
Hahnfeld marked an inline comment as done.
Hahnfeld added inline comments.Aug 9 2023, 4:30 AM
clang/test/Interpreter/global-namespace-disambiguate.cpp
6 ↗(On Diff #548514)

done

This revision is now accepted and ready to land.Aug 9 2023, 4:47 AM
This revision was automatically updated to reflect the committed changes.