diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-03-04 07:17:48 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-03-04 07:17:48 +0000 |
| commit | 2682f9e5de2d14d64972ba25c9fc769c93b53c1d (patch) | |
| tree | 470eed994139b65134aa508c09a7798031d2f619 /clang/lib/Index | |
| parent | 9c9986738633640d9ac1e38d6c54948a9245c3c1 (diff) | |
| download | bcm5719-llvm-2682f9e5de2d14d64972ba25c9fc769c93b53c1d.tar.gz bcm5719-llvm-2682f9e5de2d14d64972ba25c9fc769c93b53c1d.zip | |
[index] Include parameter types in the USRs for C functions marked with 'overloadable' attribute.
llvm-svn: 262694
Diffstat (limited to 'clang/lib/Index')
| -rw-r--r-- | clang/lib/Index/USRGeneration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Index/USRGeneration.cpp b/clang/lib/Index/USRGeneration.cpp index 85478265c06..cb30090adc0 100644 --- a/clang/lib/Index/USRGeneration.cpp +++ b/clang/lib/Index/USRGeneration.cpp @@ -218,7 +218,8 @@ void USRGenerator::VisitFunctionDecl(const FunctionDecl *D) { D->getDeclName().print(Out, Policy); ASTContext &Ctx = *Context; - if (!Ctx.getLangOpts().CPlusPlus || D->isExternC()) + if ((!Ctx.getLangOpts().CPlusPlus || D->isExternC()) && + !D->hasAttr<OverloadableAttr>()) return; if (const TemplateArgumentList * |

