For what it's worth, I just had to do it today, and I found all I needed to do was change
project -> properties -> c / C ++ build -> settings -> tool settings -> gcc C ++ compiler -> command: change it from g ++ to clang ++
and similarly
project -> properties -> c / C ++ build -> settings -> tool settings -> gcc c compiler -> command: change it from gcc to clang
As for the indexer, I found this helped ....
Eclipse CDT indexer does not know C ++ 11 containers
Although this is more C ++ 11 than the clang thing, I needed both.
stu Oct. 22 '15 at 19:28 2015-10-22 19:28
source share