diff options
Diffstat (limited to 'compilerplugins/clang/sallogareas.cxx')
-rw-r--r-- | compilerplugins/clang/sallogareas.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compilerplugins/clang/sallogareas.cxx b/compilerplugins/clang/sallogareas.cxx index 10630aa3981c..4462413f7ced 100644 --- a/compilerplugins/clang/sallogareas.cxx +++ b/compilerplugins/clang/sallogareas.cxx @@ -16,6 +16,8 @@ #include <fstream> +#include <config_clang.h> + namespace loplugin { @@ -110,11 +112,7 @@ void SalLogAreas::checkArea( StringRef area, SourceLocation location ) void SalLogAreas::readLogAreas() { -#define STRINGIFY2( s ) #s -#define STRINGIFY( s ) STRINGIFY2( s ) - ifstream is( STRINGIFY( SRCDIR ) "/sal/inc/sal/log-areas.dox" ); -#undef STRINGIFY -#undef STRINGIFY2 + ifstream is( SRCDIR "/sal/inc/sal/log-areas.dox" ); while( is.good()) { string line; |