[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-14 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource created https://github.com/llvm/llvm-project/pull/81776 The MSVC STL implementation declares multiple classes using: ```cpp namespace std { extern "C++" class locale { ... }; } ``` `isInStdNamespace` uses the first DeclContext to check wh

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/81776 >From c12b2e26ad7a114aff09b89c75178d4ab7890a20 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Wed, 14 Feb 2024 19:40:29 +0100 Subject: [PATCH 1/2] [clang] Fix isInStdNamespace for Decl fla

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/81776 >From c12b2e26ad7a114aff09b89c75178d4ab7890a20 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Wed, 14 Feb 2024 19:40:29 +0100 Subject: [PATCH 1/3] [clang] Fix isInStdNamespace for Decl fla

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
frederic-tingaud-sonarsource wrote: Oh, I didn't know about this, but it does look better. Thanks! https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/81776 >From c12b2e26ad7a114aff09b89c75178d4ab7890a20 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Wed, 14 Feb 2024 19:40:29 +0100 Subject: [PATCH 1/3] [clang] Fix isInStdNamespace for Decl fla

[clang] [clang] Fix isInStdNamespace for Decl flagged extern c++ (PR #81776)

2024-02-15 Thread Fred Tingaud via cfe-commits
frederic-tingaud-sonarsource wrote: Yes please :) https://github.com/llvm/llvm-project/pull/81776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTMatcher] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-07 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/110666 >From be911d8d0a00d5c6d42b23b40ca6d6abec51966c Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Tue, 1 Oct 2024 16:10:55 +0200 Subject: [PATCH 1/2] Handle variable templates in isInstantiat

[clang] [clang][ASTMatcher] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-30 Thread Fred Tingaud via cfe-commits
frederic-tingaud-sonarsource wrote: Pinging some recent contributors/reviewers to AST Matchers. @danix800, @AaronBallman, @shafik, @PiotrZSL, @steakhal, @cor3ntin https://github.com/llvm/llvm-project/pull/110666 ___ cfe-commits mailing list cfe-commit

[clang] [clang][ASTMatcher] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-30 Thread Fred Tingaud via cfe-commits
frederic-tingaud-sonarsource wrote: Thanks @AaronBallman! Yes, if you could land the changes, that would be great. https://github.com/llvm/llvm-project/pull/110666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-01 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource created https://github.com/llvm/llvm-project/pull/110666 Fix `isInstantiated` and `isInTemplateInstantiation` matchers, so they return true for instantiations of variable templates, and any declaration in statements contained in such instantiati

[clang] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-01 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/110666 >From be911d8d0a00d5c6d42b23b40ca6d6abec51966c Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Tue, 1 Oct 2024 16:10:55 +0200 Subject: [PATCH] Handle variable templates in isInstantiated a

[clang] [clang][ASTMatcher]Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-03 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource edited https://github.com/llvm/llvm-project/pull/110666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits