File tree Expand file tree Collapse file tree 6 files changed +20
-10
lines changed
Expand file tree Collapse file tree 6 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ jobs:
3737 run : |
3838 sudo -E ./ci/setup_ci_environment.sh
3939 - name : Initialize CodeQL
40- uses : github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
40+ uses : github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
4141 with :
4242 languages : cpp
4343 - name : Autobuild
44- uses : github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
44+ uses : github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
4545 - name : Perform CodeQL Analysis
46- uses : github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
46+ uses : github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
Original file line number Diff line number Diff line change 4747 # Upload the results to GitHub's code scanning dashboard (optional).
4848 # Commenting out will disable upload of results to your repo's Code Scanning dashboard
4949 - name : " Upload to code-scanning"
50- uses : github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
50+ uses : github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
5151 with :
5252 sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ Increment the:
3333* [ CONFIGURATION] File configuration - spec stability
3434 [ #3862 ] ( https://github.com/open-telemetry/opentelemetry-cpp/pull/3862 )
3535
36+ * [ BUILD] Upgrade to rapidyaml 0.10.0
37+ [ #3906 ] ( https://github.com/open-telemetry/opentelemetry-cpp/pull/3906 )
38+
3639Important changes:
3740
3841* [ BUILD] Revisit EventLogger deprecation
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ nlohmann-json=v3.12.0
1616opentelemetry-proto=v1.8.0
1717opentracing-cpp=v1.6.0
1818prometheus-cpp=v1.3.0
19- ryml=v0.9 .0
19+ ryml=v0.10 .0
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ nlohmann-json=v3.11.3
1616opentelemetry-proto=v1.6.0
1717opentracing-cpp=v1.6.0
1818prometheus-cpp=v1.3.0
19- ryml=v0.9 .0
19+ ryml=v0.10 .0
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33
44#include < stddef.h>
5+ #include < c4/yml/version.hpp>
56#include < exception>
67#include < memory>
78#include < ostream>
@@ -98,11 +99,17 @@ std::unique_ptr<DocumentNode> RymlDocument::GetRootNode()
9899DocumentNodeLocation RymlDocument::Location (ryml::ConstNodeRef node) const
99100{
100101 DocumentNodeLocation loc;
102+ #if RYML_VERSION_MINOR >= 10
103+ // Starting with rapidyaml 0.10.0
101104 auto ryml_loc = node.location (*parser_);
102- loc.offset = ryml_loc.offset ;
103- loc.line = ryml_loc.line ;
104- loc.col = ryml_loc.col ;
105- loc.filename = std::string (ryml_loc.name .str , ryml_loc.name .len );
105+ #else
106+ // Up to rapidyaml 0.9.0
107+ auto ryml_loc = parser_->location (node);
108+ #endif
109+ loc.offset = ryml_loc.offset ;
110+ loc.line = ryml_loc.line ;
111+ loc.col = ryml_loc.col ;
112+ loc.filename = std::string (ryml_loc.name .str , ryml_loc.name .len );
106113
107114 return loc;
108115}
You can’t perform that action at this time.
0 commit comments