dblaikie added inline comments.
================ Comment at: clang/docs/ClangCommandLineReference.rst:3549-3550 +Use DWARF extensions in later DWARF versions. + .. option:: -gz=<arg>, -gz (equivalent to -gz=zlib) ---------------- This description is probably backwards/doesn't explicitly clarify which version of the flag does which behavior. I guess the only nearby example is the -gembed-source, which describes the effect of -gembed-source, not the effect of -gno-embed-source. ================ Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3973-3974 + // as true by default. + if (const Arg *A = Args.getLastArg(options::OPT_gstrict_dwarf)) + (void)checkDebugInfoOption(A, Args, D, TC); + if (Args.hasFlag(options::OPT_gstrict_dwarf, options::OPT_gno_strict_dwarf, ---------------- @aprantl or anyone else - is this the right use of checkDebugInfoOption? I forget what it's for/how it should be used. ================ Comment at: clang/test/Driver/debug-options.c:329-330 // +// G_STRICT: "-gstrict-dwarf" +// STRICT-NOT: "-gstrict-dwarf" +// ---------------- "STRICT" v "G_STRICT" seems confusing to me - how do other flags differentiate their positive/negative tests? (looks like GNO_X/GX or GX/NOX, etc - something like that'd be good) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100809/new/ https://reviews.llvm.org/D100809 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits