aboutsummaryrefslogtreecommitdiff
path: root/src/zig_clang.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-01 22:46:46 -0500
committerGitHub <noreply@github.com>2020-01-01 22:46:46 -0500
commit576320e6d5bf706a0ee03a3e9318c8ef2fd6e76f (patch)
tree0405ebde5048781fd6f65d3bf9d444c54d04bd02 /src/zig_clang.cpp
parent1b64a5f5f0cece3cf0009410ddb13b5dd6f899e1 (diff)
parent88c5e2a96e09270a2ec3045639e7cab3712f5291 (diff)
downloadzig-576320e6d5bf706a0ee03a3e9318c8ef2fd6e76f.tar.gz
zig-576320e6d5bf706a0ee03a3e9318c8ef2fd6e76f.zip
Merge pull request #4025 from ziglang/Vexu-stage-2-cimport
Use self hosted translate-c for cImport
Diffstat (limited to 'src/zig_clang.cpp')
-rw-r--r--src/zig_clang.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zig_clang.cpp b/src/zig_clang.cpp
index f1e79ab34f..ba25d365f7 100644
--- a/src/zig_clang.cpp
+++ b/src/zig_clang.cpp
@@ -1686,6 +1686,16 @@ const struct ZigClangStmt *ZigClangFunctionDecl_getBody(const struct ZigClangFun
return reinterpret_cast<const ZigClangStmt *>(stmt);
}
+bool ZigClangFunctionDecl_doesDeclarationForceExternallyVisibleDefinition(const struct ZigClangFunctionDecl *self) {
+ auto casted = reinterpret_cast<const clang::FunctionDecl *>(self);
+ return casted->doesDeclarationForceExternallyVisibleDefinition();
+}
+
+bool ZigClangFunctionDecl_isInlineSpecified(const struct ZigClangFunctionDecl *self) {
+ auto casted = reinterpret_cast<const clang::FunctionDecl *>(self);
+ return casted->isInlineSpecified();
+}
+
const ZigClangTypedefNameDecl *ZigClangTypedefType_getDecl(const ZigClangTypedefType *self) {
auto casted = reinterpret_cast<const clang::TypedefType *>(self);
const clang::TypedefNameDecl *name_decl = casted->getDecl();