Skip to content

Commit 593f296

Browse files
committed
Merge branch 'topic/brackets_for_checks' into 'master'
use angle brackets for checks with cpl codepeer's preconditions See merge request eng/ide/gnatstudio!122
2 parents a7264f3 + 477a54a commit 593f296

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

code_analysis/src/codepeer.adb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ package body CodePeer is
256256
begin
257257
for Check of Self.Checks loop
258258
if Length (Aux) = 0 then
259-
Append (Aux, " (");
259+
if Is_CPL then
260+
Append (Aux, " <");
261+
else
262+
Append (Aux, " (");
263+
end if;
260264

261265
else
262266
Append (Aux, ", ");
@@ -267,7 +271,11 @@ package body CodePeer is
267271
end loop;
268272

269273
if Length (Aux) /= 0 then
270-
Append (Aux, ")");
274+
if Is_CPL then
275+
Append (Aux, ">");
276+
else
277+
Append (Aux, ")");
278+
end if;
271279
end if;
272280

273281
return Aux;

0 commit comments

Comments
 (0)