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

Side by Side Diff: tools/clang/plugins/tests/system/windows.h

Issue 1126413004: plugin: Don't warn about inline virtual methods from system macros; whitelist two non-system macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_CLANG_PLUGINS_TESTS_SYSTEM_WINDOWS_H_ 5 #ifndef TOOLS_CLANG_PLUGINS_TESTS_SYSTEM_WINDOWS_H_
6 #define TOOLS_CLANG_PLUGINS_TESTS_SYSTEM_WINDOWS_H_ 6 #define TOOLS_CLANG_PLUGINS_TESTS_SYSTEM_WINDOWS_H_
7 7
8 #define STDMETHOD(x) virtual void x 8 #define STDMETHOD(x) virtual void x
9 9
10 #define END_COM_MAP() virtual void AddRef() = 0; 10 #define END_COM_MAP() virtual void AddRef() = 0;
11 11
12 #define SYSTEM_REDUNDANT1 virtual void NonVirtualFinal() final 12 #define SYSTEM_REDUNDANT1 virtual void NonVirtualFinal() final
13 #define SYSTEM_REDUNDANT2 virtual void Virtual() override final 13 #define SYSTEM_REDUNDANT2 virtual void Virtual() override final
14 14
15 #define SYSTEM_INLINE_VIRTUAL virtual int Foo() { return 4; }
16
15 #endif // TOOLS_CLANG_PLUGINS_TESTS_SYSTEM_WINDOWS_H_ 17 #endif // TOOLS_CLANG_PLUGINS_TESTS_SYSTEM_WINDOWS_H_
OLDNEW
« no previous file with comments | « tools/clang/plugins/FindBadConstructsConsumer.cpp ('k') | tools/clang/plugins/tests/virtual_bodies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698