Skip to content

[clang] [TargetCXXABI] Fix -Wextra-semi warning (NFC) #96982

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

Conversation

akirchhoff-modular
Copy link
Contributor

While building a downstream project including TargetCXXABI.h, I received a -Wextra-semi warning. This PR removes the extra semicolon, fixing the warning.

While building a downstream project including `TargetCXXABI.h`, I
received a `-Wextra-semi` warning.  This PR removes the extra semicolon,
fixing the warning.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Jun 27, 2024
@llvmbot
Copy link
Member

llvmbot commented Jun 27, 2024

@llvm/pr-subscribers-clang

Author: None (akirchhoff-modular)

Changes

While building a downstream project including TargetCXXABI.h, I received a -Wextra-semi warning. This PR removes the extra semicolon, fixing the warning.


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

1 Files Affected:

  • (modified) clang/include/clang/Basic/TargetCXXABI.h (+1-1)
diff --git a/clang/include/clang/Basic/TargetCXXABI.h b/clang/include/clang/Basic/TargetCXXABI.h
index c113a6a048ad4..d204452afbf4b 100644
--- a/clang/include/clang/Basic/TargetCXXABI.h
+++ b/clang/include/clang/Basic/TargetCXXABI.h
@@ -116,7 +116,7 @@ class TargetCXXABI {
       return T.isKnownWindowsMSVCEnvironment();
     }
     llvm_unreachable("invalid CXXABI kind");
-  };
+  }
 
   /// Does this ABI generally fall into the Itanium family of ABIs?
   bool isItaniumFamily() const {

@naibaf7 naibaf7 self-requested a review June 27, 2024 22:55
@akirchhoff-modular akirchhoff-modular merged commit 8e1f779 into llvm:main Jun 27, 2024
7 of 9 checks passed
@akirchhoff-modular akirchhoff-modular deleted the akirchhoff/targetcxxabi-fix-extra-semi branch June 27, 2024 22:57
lravenclaw pushed a commit to lravenclaw/llvm-project that referenced this pull request Jul 3, 2024
While building a downstream project including `TargetCXXABI.h`, I
received a `-Wextra-semi` warning. This PR removes the extra semicolon,
fixing the warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants