Author: Vlad Serebrennikov Date: 2024-02-11T11:44:02+03:00 New Revision: fcd21624b082b0c42777f6047cdfbc8a59057001
URL: https://github.com/llvm/llvm-project/commit/fcd21624b082b0c42777f6047cdfbc8a59057001 DIFF: https://github.com/llvm/llvm-project/commit/fcd21624b082b0c42777f6047cdfbc8a59057001.diff LOG: [clang][NFC] Annotate `Driver.h` with `preferred_type` This helps debuggers to display values in bit-fields in a more helpful way. Added: Modified: clang/include/clang/Driver/Driver.h Removed: ################################################################################ diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h index 3ee1bcf2a69c9b..908bc87c14b1ca 100644 --- a/clang/include/clang/Driver/Driver.h +++ b/clang/include/clang/Driver/Driver.h @@ -232,10 +232,12 @@ class Driver { bool IsDXCMode() const { return Mode == DXCMode; } /// Only print tool bindings, don't build any jobs. + LLVM_PREFERRED_TYPE(bool) unsigned CCCPrintBindings : 1; /// Set CC_PRINT_OPTIONS mode, which is like -v but logs the commands to /// CCPrintOptionsFilename or to stderr. + LLVM_PREFERRED_TYPE(bool) unsigned CCPrintOptions : 1; /// The format of the header information that is emitted. If CC_PRINT_HEADERS @@ -252,17 +254,21 @@ class Driver { /// Set CC_LOG_DIAGNOSTICS mode, which causes the frontend to log diagnostics /// to CCLogDiagnosticsFilename or to stderr, in a stable machine readable /// format. + LLVM_PREFERRED_TYPE(bool) unsigned CCLogDiagnostics : 1; /// Whether the driver is generating diagnostics for debugging purposes. + LLVM_PREFERRED_TYPE(bool) unsigned CCGenDiagnostics : 1; /// Set CC_PRINT_PROC_STAT mode, which causes the driver to dump /// performance report to CC_PRINT_PROC_STAT_FILE or to stdout. + LLVM_PREFERRED_TYPE(bool) unsigned CCPrintProcessStats : 1; /// Set CC_PRINT_INTERNAL_STAT mode, which causes the driver to dump internal /// performance report to CC_PRINT_INTERNAL_STAT_FILE or to stdout. + LLVM_PREFERRED_TYPE(bool) unsigned CCPrintInternalStats : 1; /// Pointer to the ExecuteCC1Tool function, if available. @@ -303,9 +309,11 @@ class Driver { /// Whether to check that input files exist when constructing compilation /// jobs. + LLVM_PREFERRED_TYPE(bool) unsigned CheckInputsExist : 1; /// Whether to probe for PCH files on disk, in order to upgrade /// -include foo.h to -include-pch foo.h.pch. + LLVM_PREFERRED_TYPE(bool) unsigned ProbePrecompiled : 1; public: @@ -319,6 +327,7 @@ class Driver { private: /// Certain options suppress the 'no input files' warning. + LLVM_PREFERRED_TYPE(bool) unsigned SuppressMissingInputWarning : 1; /// Cache of all the ToolChains in use by the driver. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits