Skip to content

Commit 356d9c4

Browse files
Clang formatting
Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>
1 parent 5fe9ef5 commit 356d9c4

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

runtime/nvqir/AnalysisScope.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* the terms of the Apache License 2.0 which accompanies this distribution. *
77
******************************************************************************/
88

9-
#include "cudaq/analysis/scope.h"
109
#include "CircuitSimulator.h"
1110
#include "common/PluginUtils.h"
11+
#include "cudaq/analysis/scope.h"
1212
#include "cudaq/runtime/logger/logger.h"
1313
#include <stdexcept>
1414
#include <utility>
@@ -53,9 +53,9 @@ scope scope::from_plugin(std::string name, std::string plugin_name, hooks h) {
5353
const auto symbol = std::string("getCircuitSimulator_") + plugin_name;
5454
auto *sim = cudaq::getUniquePluginInstance<nvqir::CircuitSimulator>(symbol);
5555
if (!sim)
56-
throw std::runtime_error(
57-
"`cudaq::analysis::scope::from_plugin`: plugin '" + plugin_name +
58-
"' returned a null CircuitSimulator.");
56+
throw std::runtime_error("`cudaq::analysis::scope::from_plugin`: plugin '" +
57+
plugin_name +
58+
"' returned a null CircuitSimulator.");
5959
return scope{std::move(name), *sim, std::move(h)};
6060
}
6161

unittests/integration/analysis_scope_tester.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ CUDAQ_TEST(AnalysisScopeTester, nestedScopeThrows) {
3131
auto outer = cudaq::analysis::resource_counter::make_scope(alwaysFalse);
3232
EXPECT_TRUE(cudaq::analysis::scope::is_active());
3333

34-
EXPECT_THROW(
35-
cudaq::analysis::resource_counter::make_scope(alwaysFalse),
36-
std::runtime_error);
34+
EXPECT_THROW(cudaq::analysis::resource_counter::make_scope(alwaysFalse),
35+
std::runtime_error);
3736

3837
// Outer scope is still the active one after the failed nest attempt.
3938
EXPECT_TRUE(cudaq::analysis::scope::is_active());
@@ -56,8 +55,9 @@ CUDAQ_TEST(AnalysisScopeTester, prepopulateWithoutScopeThrows) {
5655
EXPECT_FALSE(cudaq::analysis::scope::is_active());
5756
cudaq::Resources counts;
5857
counts.appendInstruction("h", 0);
59-
EXPECT_THROW(cudaq::analysis::resource_counter::prepopulate(std::move(counts)),
60-
std::runtime_error);
58+
EXPECT_THROW(
59+
cudaq::analysis::resource_counter::prepopulate(std::move(counts)),
60+
std::runtime_error);
6161
}
6262

6363
CUDAQ_TEST(AnalysisScopeTester, prepopulateInsideScopeReflectsInGetCounts) {

0 commit comments

Comments
 (0)