config_clang.h
This commit is contained in:
@@ -52,7 +52,7 @@ CLANGOBJS=
|
||||
define clangbuildsrc
|
||||
$(3): $(2) $(SRCDIR)/compilerplugins/Makefile-clang.mk $(CLANGOUTDIR)/clang-timestamp
|
||||
@echo [build CXX] $(subst $(SRCDIR)/,,$(2))
|
||||
$(CXX) $(CLANGCXXFLAGS) $(CLANGDEFS) $(CLANGINCLUDES) -DSRCDIR=$(SRCDIR) $(2) -fPIC -c -o $(3) -MMD -MT $(3) -MP -MF $(CLANGOUTDIR)/$(1).d
|
||||
$(CXX) $(CLANGCXXFLAGS) $(CLANGDEFS) $(CLANGINCLUDES) -I$(BUILDDIR)/config $(2) -fPIC -c -o $(3) -MMD -MT $(3) -MP -MF $(CLANGOUTDIR)/$(1).d
|
||||
|
||||
-include $(CLANGOUTDIR)/$(1).d
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user