summaryrefslogtreecommitdiff
path: root/slicer/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-03-19 21:56:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-03-19 21:56:50 +0000
commitd399910103de05bc15ebc90a732f55a50732146e (patch)
tree3a22459dd2e4faf60f54b0bd5840fab2dfb1c77c /slicer/test
parentExplicitly disable checker for generated code (diff)
downloadslicer-d399910103de05bc15ebc90a732f55a50732146e.tar.bz2
slicer-d399910103de05bc15ebc90a732f55a50732146e.tar.xz
slicer-d399910103de05bc15ebc90a732f55a50732146e.zip
Clang tidy our own generated code
Builds tools with gcc to run a real slicer for the codegen. Fixs results tidy warnings
Diffstat (limited to 'slicer/test')
-rw-r--r--slicer/test/Jamfile.jam8
-rw-r--r--slicer/test/slicer.jam2
2 files changed, 6 insertions, 4 deletions
diff --git a/slicer/test/Jamfile.jam b/slicer/test/Jamfile.jam
index c288fc9..4c0acbd 100644
--- a/slicer/test/Jamfile.jam
+++ b/slicer/test/Jamfile.jam
@@ -22,9 +22,13 @@ lib types :
[ glob *.ice ]
conversions.cpp
:
- <dependency>../tool//slicer
+ <toolset>gcc:<dependency>../tool//slicer/<toolset>gcc
+ <toolset>clang:<dependency>../tool//slicer/<toolset>clang
+ <toolset>tidy:<dependency>../tool//slicer/<toolset>gcc
<slicer>pure
- <slicerbin>../tool//slicer
+ <toolset>gcc:<slicerbin>../tool//slicer/<toolset>gcc
+ <toolset>clang:<slicerbin>../tool//slicer/<toolset>clang
+ <toolset>tidy:<slicerbin>../tool//slicer/<toolset>gcc
<include>.
<library>..//adhocutil
<library>boost_date_time
diff --git a/slicer/test/slicer.jam b/slicer/test/slicer.jam
index f43d087..f413628 100644
--- a/slicer/test/slicer.jam
+++ b/slicer/test/slicer.jam
@@ -14,13 +14,11 @@ toolset.flags slicer INCLUDES <include> ;
actions slicer bind SLICERBIN
{
slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC
- touch $(1[2])
"$(SLICERBIN)" -I"$(INCLUDES)" $(2) $(1[2]) --headerPrefix="\"\""
}
actions slicer.pure bind SLICERBIN
{
- touch $(1[1])
"$(SLICERBIN)" -I"$(INCLUDES)" $(2) $(1[1]) --headerPrefix="\"\""
}