Skip to content

Remove no-op visibility markers #136271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

chandlerc
Copy link
Member

Richard Smith noticed that these are overridden by the surrounding visibility let region. Remove them to avoid confusion.

This should be a no-op given how the .td file is structured.

Richard Smith noticed that these are overridden by the surrounding
visibility `let` region. Remove them to avoid confusion.

This should be a no-op given how the `.td` file is structured.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Apr 18, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 18, 2025

@llvm/pr-subscribers-clang

Author: Chandler Carruth (chandlerc)

Changes

Richard Smith noticed that these are overridden by the surrounding visibility let region. Remove them to avoid confusion.

This should be a no-op given how the .td file is structured.


Full diff: https://github.com/llvm/llvm-project/pull/136271.diff

1 Files Affected:

  • (modified) clang/include/clang/Driver/Options.td (+15-15)
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 830d3459a1320..ff823eebcfdfe 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -7893,23 +7893,23 @@ defm disable_free : BoolOption<"",
   "disable-free",
   FrontendOpts<"DisableFree">,
   DefaultFalse,
-  PosFlag<SetTrue, [], [ClangOption], "Disable">,
-  NegFlag<SetFalse, [], [ClangOption], "Don't disable">,
-  BothFlags<[], [ClangOption], " freeing of memory on exit">>;
+  PosFlag<SetTrue, [], [], "Disable">,
+  NegFlag<SetFalse, [], [], "Don't disable">,
+  BothFlags<[], [], " freeing of memory on exit">>;
 defm clear_ast_before_backend : BoolOption<"",
   "clear-ast-before-backend",
   CodeGenOpts<"ClearASTBeforeBackend">,
   DefaultFalse,
-  PosFlag<SetTrue, [], [ClangOption], "Clear">,
-  NegFlag<SetFalse, [], [ClangOption], "Don't clear">,
-  BothFlags<[], [ClangOption], " the Clang AST before running backend code generation">>;
+  PosFlag<SetTrue, [], [], "Clear">,
+  NegFlag<SetFalse, [], [], "Don't clear">,
+  BothFlags<[], [], " the Clang AST before running backend code generation">>;
 defm enable_noundef_analysis : BoolOption<"",
   "enable-noundef-analysis",
   CodeGenOpts<"EnableNoundefAttrs">,
   DefaultTrue,
-  PosFlag<SetTrue, [], [ClangOption], "Enable">,
-  NegFlag<SetFalse, [], [ClangOption], "Disable">,
-  BothFlags<[], [ClangOption], " analyzing function argument and return types for mandatory definedness">>;
+  PosFlag<SetTrue, [], [], "Enable">,
+  NegFlag<SetFalse, [], [], "Disable">,
+  BothFlags<[], [], " analyzing function argument and return types for mandatory definedness">>;
 def discard_value_names : Flag<["-"], "discard-value-names">,
   HelpText<"Discard value names in LLVM IR">,
   MarshallingInfoFlag<CodeGenOpts<"DiscardValueNames">>;
@@ -7953,7 +7953,7 @@ def fmodules_embed_file_EQ : Joined<["-"], "fmodules-embed-file=">,
 defm fimplicit_modules_use_lock : BoolOption<"f", "implicit-modules-use-lock",
   FrontendOpts<"BuildingImplicitModuleUsesLock">, DefaultTrue,
   NegFlag<SetFalse>,
-  PosFlag<SetTrue, [], [ClangOption],
+  PosFlag<SetTrue, [], [],
           "Use filesystem locks for implicit modules builds to avoid "
           "duplicating work in competing clang invocations.">>;
 // FIXME: We only need this in C++ modules if we might textually
@@ -7986,12 +7986,12 @@ def ftest_module_file_extension_EQ :
 defm recovery_ast : BoolOption<"f", "recovery-ast",
   LangOpts<"RecoveryAST">, DefaultTrue,
   NegFlag<SetFalse>,
-  PosFlag<SetTrue, [], [ClangOption], "Preserve expressions in AST rather "
+  PosFlag<SetTrue, [], [], "Preserve expressions in AST rather "
                               "than dropping them when encountering semantic errors">>;
 defm recovery_ast_type : BoolOption<"f", "recovery-ast-type",
   LangOpts<"RecoveryASTType">, DefaultTrue,
   NegFlag<SetFalse>,
-  PosFlag<SetTrue, [], [ClangOption], "Preserve the type for recovery "
+  PosFlag<SetTrue, [], [], "Preserve the type for recovery "
                               "expressions when possible">>;
 
 let Group = Action_Group in {
@@ -8068,9 +8068,9 @@ def dump_minimization_hints : Joined<["-"],
 
 defm emit_llvm_uselists : BoolOption<"", "emit-llvm-uselists",
   CodeGenOpts<"EmitLLVMUseLists">, DefaultFalse,
-  PosFlag<SetTrue, [], [ClangOption], "Preserve">,
-  NegFlag<SetFalse, [], [ClangOption], "Don't preserve">,
-  BothFlags<[], [ClangOption], " order of LLVM use-lists when serializing">>;
+  PosFlag<SetTrue, [], [], "Preserve">,
+  NegFlag<SetFalse, [], [], "Don't preserve">,
+  BothFlags<[], [], " order of LLVM use-lists when serializing">>;
 
 def print_stats : Flag<["-"], "print-stats">,
   HelpText<"Print performance metrics and statistics">,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants