diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 10:54:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 13:55:43 +0200 |
commit | 569c7da252be05366980ae88ce30ef17f6e61d8c (patch) | |
tree | 2506933ed4caae9602d042f1eaddaf7bd73814d0 /compilerplugins/clang/plugin.hxx | |
parent | 5670f65ccea6c47b17ec010fd15edcee5522086b (diff) |
extract some common code for checking if a functions address was taken
Change-Id: I292b4e9bf17c83f83ff43ac4c5870d33092d0c71
Diffstat (limited to 'compilerplugins/clang/plugin.hxx')
-rw-r--r-- | compilerplugins/clang/plugin.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx index 1f57dfeb0ffa..69349236a42d 100644 --- a/compilerplugins/clang/plugin.hxx +++ b/compilerplugins/clang/plugin.hxx @@ -56,11 +56,12 @@ public: enum { isPPCallback = false }; // Returns location right after the end of the token that starts at the given location. SourceLocation locationAfterToken( SourceLocation location ); -protected: - DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation()) const; bool ignoreLocation( SourceLocation loc ); bool ignoreLocation( const Decl* decl ); bool ignoreLocation( const Stmt* stmt ); + +protected: + DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc = SourceLocation()) const; CompilerInstance& compiler; PluginHandler& handler; /** |