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
87fe41c8
Commit
87fe41c8
authored
8 years ago
by
Olivier Couet
Browse files
Options
Downloads
Plain Diff
Merge branch 'pseyfert-histdoc'
parents
3833b23d
e3180147
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/modules/CTestCustom.cmake
+2
-1
2 additions, 1 deletion
cmake/modules/CTestCustom.cmake
core/metacling/src/ClingRAII.h
+25
-2
25 additions, 2 deletions
core/metacling/src/ClingRAII.h
tutorials/hist/histpalettecolor.C
+5
-5
5 additions, 5 deletions
tutorials/hist/histpalettecolor.C
with
32 additions
and
8 deletions
cmake/modules/CTestCustom.cmake
+
2
−
1
View file @
87fe41c8
...
...
@@ -21,7 +21,8 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION}
"function is dangerous and should not be used"
# deprecated use of std functions cint/ROOT
)
set
(
CTEST_CUSTOM_ERROR_EXCEPTION
${
CTEST_CUSTOM_ERROR_EXCEPTION
}
"fatal error: cannot open file"
)
"fatal error: cannot open file"
"remark: "
)
#---Include other CTest Custom files----------------------------------------
if
(
DEFINED CTEST_BINARY_DIRECTORY
)
...
...
This diff is collapsed.
Click to expand it.
core/metacling/src/ClingRAII.h
+
25
−
2
View file @
87fe41c8
...
...
@@ -20,6 +20,27 @@ namespace ROOT {
////////////////////////////////////////////////////////////////////////////////
/// RAII used to store Parser, Sema, Preprocessor state for recursive parsing.
struct
ParsingStateRAII
{
struct
SemaExprCleanupsRAII
{
decltype
(
clang
::
Sema
::
Cleanup
)
fCleanup
;
decltype
(
clang
::
Sema
::
ExprCleanupObjects
)
fExprCleanupObjects
;
decltype
(
clang
::
Sema
::
MaybeODRUseExprs
)
fMaybeODRUseExprs
;
decltype
(
clang
::
Sema
::
FunctionScopes
)
fFunctionScopes
;
clang
::
Sema
&
fSema
;
void
Swapem
()
{
std
::
swap
(
fCleanup
,
fSema
.
Cleanup
);
std
::
swap
(
fExprCleanupObjects
,
fSema
.
ExprCleanupObjects
);
std
::
swap
(
fMaybeODRUseExprs
,
fSema
.
MaybeODRUseExprs
);
std
::
swap
(
fFunctionScopes
,
fSema
.
FunctionScopes
);
}
SemaExprCleanupsRAII
(
clang
::
Sema
&
S
)
:
fSema
(
S
)
{
fFunctionScopes
.
push_back
(
new
clang
::
sema
::
FunctionScopeInfo
(
S
.
Diags
));
Swapem
();
};
~
SemaExprCleanupsRAII
()
{
Swapem
();
}
};
struct
SemaParsingInitForAutoVarsRAII
{
using
PIFAV_t
=
decltype
(
clang
::
Sema
::
ParsingInitForAutoVars
);
PIFAV_t
&
fSemaPIFAV
;
...
...
@@ -39,6 +60,8 @@ namespace ROOT {
// Buffer the delayed infos when doing recursive parsing.
clang
::
Sema
::
DelayedInfoRAII
fSemaInfoRAII
;
SemaExprCleanupsRAII
fSemaExprCleanupsRAII
;
// We can't PushDeclContext, because we go up and the routine that pops
// the DeclContext assumes that we drill down always.
// We have to be on the global context. At that point we are in a
...
...
@@ -51,7 +74,7 @@ namespace ROOT {
fCleanupRAII
(
sema
.
getPreprocessor
()),
fSavedCurToken
(
parser
),
fParserRAII
(
parser
,
false
/*skipToEOF*/
),
fSemaInfoRAII
(
sema
),
fSemaInfoRAII
(
sema
),
fSemaExprCleanupsRAII
(
sema
),
fPushedDCAndS
(
sema
,
sema
.
getASTContext
().
getTranslationUnitDecl
(),
sema
.
TUScope
),
fSemaParsingInitForAutoVarsRAII
(
sema
.
ParsingInitForAutoVars
)
...
...
@@ -64,4 +87,4 @@ namespace ROOT {
};
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
tutorials/hist/histpalettecolor.C
+
5
−
5
View file @
87fe41c8
...
...
@@ -41,11 +41,11 @@ void histpalettecolor()
h5
->
Fill
(
px
,
2
.);
}
h1
->
SetMarkerStyle
(
20
);
h2
->
SetMarkerStyle
(
21
);
h3
->
SetMarkerStyle
(
22
);
h4
->
SetMarkerStyle
(
23
);
h5
->
SetMarkerStyle
(
24
);
h1
->
SetMarkerStyle
(
kFullCircle
);
h2
->
SetMarkerStyle
(
kFullSquare
);
h3
->
SetMarkerStyle
(
kFullTriangleUp
);
h4
->
SetMarkerStyle
(
kFullTriangleDown
);
h5
->
SetMarkerStyle
(
kOpenCircle
);
h1
->
Draw
(
"PLC PMC"
);
h2
->
Draw
(
"SAME PLC PMC"
);
...
...
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