[PATCH] D40968: [OpenMP] Diagnose function name on the link clause

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 8 08:51:46 PST 2017


ABataev added inline comments.


================
Comment at: lib/Sema/SemaOpenMP.cpp:12671
+void Sema::checkDeclIsAllowedInOpenMPTarget(Expr *E, Decl *D,
+                                            const DeclarationNameInfo *Id) {
   if (!D || D->isInvalidDecl())
----------------
You can get `DeclarationNameInfo` from the `FunctionDecl`:
```
FD->getNameInfo()
```


https://reviews.llvm.org/D40968





More information about the cfe-commits mailing list