#!/usr/bin/env bash

set -ex

# We need to put in place all relevant headers before running clang-tidy.
mkdir ../build
cd ../build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Dall=On -Dtesting=On -Dx11=Off -Dalien=Off \
      -Dcuda=Off -Dtmva-gpu=Off -Dveccore=Off ../root
# We need to prebuild a minimal set of targets which are responsible for header copy
# or generation.
make -j4 move_headers intrinsics_gen ClangCommentCommandList ClangCommentCommandInfo \
         ClangCommentHTMLNamedCharacterReferences ClangCommentHTMLTagsProperties     \
         ClangCommentNodes ClangAttrImpl ClangStmtNodes ClangAttrClasses             \
         ClangAttrDump ClangCommentHTMLTags ClangDeclNodes ClangAttrVisitor          \
         ClangDiagnosticCommon ClangARMNeon ClangDiagnosticIndexName                 \
         ClangDiagnosticParse ClangDiagnosticComment ClangDiagnosticFrontend         \
         ClangDiagnosticGroups ClangDiagnosticSerialization ClangDiagnosticLex       \
         ClangDiagnosticSema ClangAttrList ClangAttrHasAttributeImpl                 \
         ClangDiagnosticAST ClangDiagnosticDriver ClangDiagnosticAnalysis            \
         ClangDriverOptions ClangAttrParserStringSwitches ClangAttrParsedAttrList    \
         ClangAttrTemplateInstantiate ClangAttrSpellingListIndex                     \
         ClangAttrParsedAttrImpl ClangAttrParsedAttrKinds googletest
ln -s $PWD/compile_commands.json $PWD/../root/


#!/usr/bin/env bash

set -ex

# We need to put in place all relevant headers before running clang-tidy.
mkdir ../build
cd ../build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Dall=On -Dtesting=On -Dx11=Off -Dalien=Off \
      -Dcuda=Off -Dtmva-gpu=Off -Dveccore=Off ../root
# We need to prebuild a minimal set of targets which are responsible for header copy
# or generation.
make -j4 move_headers intrinsics_gen ClangCommentCommandList ClangCommentCommandInfo \
         ClangCommentHTMLNamedCharacterReferences ClangCommentHTMLTagsProperties     \
         ClangCommentNodes ClangAttrImpl ClangStmtNodes ClangAttrClasses             \
         ClangAttrDump ClangCommentHTMLTags ClangDeclNodes ClangAttrVisitor          \
         ClangDiagnosticCommon ClangARMNeon ClangDiagnosticIndexName                 \
         ClangDiagnosticParse ClangDiagnosticComment ClangDiagnosticFrontend         \
         ClangDiagnosticGroups ClangDiagnosticSerialization ClangDiagnosticLex       \
         ClangDiagnosticSema ClangAttrList ClangAttrHasAttributeImpl                 \
         ClangDiagnosticAST ClangDiagnosticDriver ClangDiagnosticAnalysis            \
         ClangDriverOptions ClangAttrParserStringSwitches ClangAttrParsedAttrList    \
         ClangAttrTemplateInstantiate ClangAttrSpellingListIndex                     \
         ClangAttrParsedAttrImpl ClangAttrParsedAttrKinds googletest Dictgen         \
         ClangAttrSubjectMatchRuleList BaseTROOT
ln -s $PWD/compile_commands.json $PWD/../root/


Include missing header for travis
Include missing header for travis
