Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

g++/clang ultra fast parse but not compile mode?

Tags:

c++

g++

clang

Is there some ultra fast "syntax check my code, but don't compile mode" for g++/clang? Where the only goal is to just check if the code I have is valid C++ code?

like image 904
anon Avatar asked Apr 05 '10 07:04

anon


1 Answers

-fsyntax-only for GCC, this should probably work for Clang as well since they emulate GCC's command line options. Whether or not it's significantly faster, you'll have to time.

like image 132
Dan Olson Avatar answered Sep 19 '22 04:09

Dan Olson