@@ -852,6 +852,29 @@ getCompilationDatabase(int argc, char **argv, std::string &ErrorMessage) {
852852}
853853
854854int clang_scan_deps_main (int argc, char **argv, const llvm::ToolContext &) {
855+ #define LANGOPT (Name, Bits, DefaultValue, Description ) \
856+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
857+ << " Affecting" << " " << Description << " \n " ;
858+ #define COMPATIBLE_LANGOPT (Name, Bits, DefaultValue, Description ) \
859+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
860+ << " Compatible" << " " << Description << " \n " ;
861+ #define COMPATIBLE_VALUE_LANGOPT (Name, Bits, DefaultValue, Description ) \
862+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
863+ << " Compatible" << " " << Description << " \n " ;
864+ #define COMPATIBLE_ENUM_LANGOPT (Name, Type, Bits, DefaultValue, Description ) \
865+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
866+ << " Compatible" << " " << Description << " \n " ;
867+ #define BENIGN_LANGOPT (Name, Bits, DefaultValue, Description ) \
868+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
869+ << " Benign" << " " << Description << " \n " ;
870+ #define BENIGN_VALUE_LANGOPT (Name, Bits, DefaultValue, Description ) \
871+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
872+ << " Benign" << " " << Description << " \n " ;
873+ #define BENIGN_ENUM_LANGOPT (Name, Type, Bits, DefaultValue, Description ) \
874+ llvm::outs () << #Name << " " << Bits << " " << #DefaultValue << " " \
875+ << " Benign" << " " << Description << " \n " ;
876+ #include " clang/Basic/LangOptions.def"
877+
855878 llvm::InitializeAllTargetInfos ();
856879 std::string ErrorMessage;
857880 std::unique_ptr<tooling::CompilationDatabase> Compilations =
0 commit comments