Fix build
ClosedPublic

Authored by tomisaacson on Dec 28 2017, 8:13 PM.

Details

Reviewers
smartins
Summary

Without this fix I was getting:

08:30 $ make && make install
Scanning dependencies of target ClangLazy
[  1%] Building CXX object CMakeFiles/ClangLazy.dir/src/checks/level0/qcolor-from-literal.cpp.o
In file included from /home/big/Documents/Github/clazy/src/StringUtils.h:29:0,
                 from /home/big/Documents/Github/clazy/src/checks/level0/qcolor-from-literal.cpp:22:
/home/big/Documents/Github/clazy/src/Utils.h: In function ‘bool Utils::isMainFile(const clang::SourceManager&, clang::SourceLocation)’:
/home/big/Documents/Github/clazy/src/Utils.h:280:21: error: invalid use of incomplete type ‘const class clang::SourceManager’
             loc = sm.getExpansionLoc(loc);

Diff Detail

Repository
R74 Clazy
Lint
Lint Skipped
Unit
Unit Tests Skipped
tomisaacson requested review of this revision.Dec 28 2017, 8:13 PM
tomisaacson created this revision.
tomisaacson added a reviewer: smartins.
smartins accepted this revision.Dec 28 2017, 8:36 PM

thanks !

This revision is now accepted and ready to land.Dec 28 2017, 8:36 PM
smartins closed this revision.Dec 29 2017, 4:10 PM

commit d565fdb04882bcf827b6b594dc85feadf6d056e7 (HEAD -> master)
Author: Tom Isaacson <tom.isaacson@navico.com>
Date: Fri Dec 29 08:55:12 2017 +1300

Fix build.