This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] fix false positve for namespace with attrs in modernize-concat-nested-namespaces
ClosedPublic

Authored by HerrCai0907 on Apr 8 2023, 12:51 PM.

Details

Summary

Fixed https://github.com/llvm/llvm-project/issues/57530
Add pre check to avoid false positive for namespace with attributes like

namespace [[deprecated]] ns {}

Diff Detail

Event Timeline

HerrCai0907 created this revision.Apr 8 2023, 12:51 PM
Herald added a project: Restricted Project. · View Herald Transcript
HerrCai0907 requested review of this revision.Apr 8 2023, 12:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 12:51 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

It should fix https://github.com/llvm/llvm-project/issues/57530 due to side effect instead of root cause.\

PiotrZSL accepted this revision.Apr 9 2023, 12:31 AM
PiotrZSL added inline comments.
clang-tools-extra/docs/ReleaseNotes.rst
303–309

Merge those 2 into one if possible.

This revision is now accepted and ready to land.Apr 9 2023, 12:31 AM

Reference issue in commit message, so it could auto-close, or close it manualy later.

HerrCai0907 edited the summary of this revision. (Show Details)Apr 9 2023, 7:19 AM
HerrCai0907 edited the summary of this revision. (Show Details)

merge items in release note

HerrCai0907 edited the summary of this revision. (Show Details)Apr 9 2023, 7:22 AM
This revision was landed with ongoing or failed builds.Apr 9 2023, 7:23 AM
This revision was automatically updated to reflect the committed changes.