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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
-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.