Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 10808078: Clang plugin: defer checking of tag decls until after top-level decl fully parsed (Closed)

Created:
8 years, 5 months ago by hans
Modified:
8 years, 5 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Clang plugin: defer checking of tag decls until after top-level decl fully parsed It turns out that a CXXRecordDecl can change between the call to HandleTagDeclDefinition and HandleTopLevelDecl. This happens in the case of nested class declarations, causing us to fail to emit warnings in some cases (see the test). See crbug.com/136863 for the full discussion. BUG=136863 TEST=tools/clang/plugins/tests/test.sh Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148070

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -1 line) Patch
M tools/clang/plugins/ChromeClassTester.h View 3 chunks +6 lines, -0 lines 0 comments Download
M tools/clang/plugins/ChromeClassTester.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
A tools/clang/plugins/tests/nested_class_inline_ctor.h View 1 chunk +22 lines, -0 lines 0 comments Download
A + tools/clang/plugins/tests/nested_class_inline_ctor.cpp View 1 chunk +1 line, -1 line 0 comments Download
A tools/clang/plugins/tests/nested_class_inline_ctor.txt View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hans
This builds on rsleevi's investigation, and delays checking the class decls until HandleTopLevelDecl is called. ...
8 years, 5 months ago (2012-07-23 16:23:39 UTC) #1
Nico
lgtm
8 years, 5 months ago (2012-07-23 17:00:09 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hans@chromium.org/10808078/1
8 years, 5 months ago (2012-07-24 07:42:54 UTC) #3
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 09:01:41 UTC) #4
Change committed as 148070

Powered by Google App Engine
This is Rietveld 408576698