Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
f94becf3
Commit
f94becf3
authored
11 years ago
by
Axel Naumann
Browse files
Options
Downloads
Patches
Plain Diff
First step away from SVN versioning.
parent
3f679e84
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interpreter/cling/include/cling/Interpreter/Interpreter.h
+1
-1
1 addition, 1 deletion
interpreter/cling/include/cling/Interpreter/Interpreter.h
interpreter/cling/lib/Interpreter/Interpreter.cpp
+8
-4
8 additions, 4 deletions
interpreter/cling/lib/Interpreter/Interpreter.cpp
with
9 additions
and
5 deletions
interpreter/cling/include/cling/Interpreter/Interpreter.h
+
1
−
1
View file @
f94becf3
...
...
@@ -265,7 +265,7 @@ namespace cling {
bool
withAccessControl
);
///\brief Set up include paths for runtime headers.
void
AddRuntimeIncludePaths
();
void
AddRuntimeIncludePaths
(
const
char
*
argv0
);
///\brief Include C++ runtime headers and definitions.
void
IncludeCxxRuntime
();
///\brief Include C runtime headers and definitions.
...
...
This diff is collapsed.
Click to expand it.
interpreter/cling/lib/Interpreter/Interpreter.cpp
+
8
−
4
View file @
f94becf3
...
...
@@ -186,7 +186,7 @@ namespace cling {
handleFrontendOptions
();
AddRuntimeIncludePaths
();
AddRuntimeIncludePaths
(
argv
[
0
]
);
// Tell the diagnostic client that we are entering file parsing mode.
DiagnosticConsumer
&
DClient
=
getCI
()
->
getDiagnosticClient
();
...
...
@@ -212,7 +212,11 @@ namespace cling {
}
const
char
*
Interpreter
::
getVersion
()
const
{
return
"$Id$"
;
#ifdef CLING_VERSION
return
CLING_VERSION
#else
return
"<unknown>"
;
#endif
}
void
Interpreter
::
handleFrontendOptions
()
{
...
...
@@ -224,7 +228,7 @@ namespace cling {
}
}
void
Interpreter
::
AddRuntimeIncludePaths
()
{
void
Interpreter
::
AddRuntimeIncludePaths
(
const
char
*
argv0
)
{
// Add configuration paths to interpreter's include files.
#ifdef CLING_INCLUDE_PATHS
llvm
::
StringRef
InclPaths
(
CLING_INCLUDE_PATHS
);
...
...
@@ -238,7 +242,7 @@ namespace cling {
// Add remaining part
AddIncludePath
(
InclPaths
);
#endif
llvm
::
SmallString
<
512
>
P
(
GetExecutablePath
(
argv
[
0
]
));
llvm
::
SmallString
<
512
>
P
(
GetExecutablePath
(
argv
0
));
if
(
!
P
.
empty
())
{
// Remove /cling from foo/bin/clang
llvm
::
StringRef
ExeIncl
=
llvm
::
sys
::
path
::
parent_path
(
P
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment