Skip to content

Commit b6d354f

Browse files
Rm superfluous parens
1 parent 85f93fd commit b6d354f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/cil.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,26 +1414,26 @@ type attributeClass =
14141414
* conversion *)
14151415
let attributeHash: (string, attributeClass) H.t =
14161416
let table = H.create 13 in
1417-
List.iter (fun a -> H.add table a (AttrName))
1417+
List.iter (fun a -> H.add table a AttrName)
14181418
[ "section"; "constructor"; "destructor"; "unused"; "used"; "weak";
14191419
"no_instrument_function"; "alias"; "no_check_memory_usage";
14201420
"exception"; "model"; (* "restrict"; *)
14211421
"aconst"; "__asm__" (* Gcc uses this to specify the name to be used in
14221422
* assembly for a global *)];
14231423

14241424
(* Now come the MSVC declspec attributes *)
1425-
List.iter (fun a -> H.add table a (AttrName))
1425+
List.iter (fun a -> H.add table a AttrName)
14261426
[ "thread"; "naked"; "dllimport"; "dllexport";
14271427
"selectany"; "allocate"; "nothrow"; "novtable"; "property"; "noreturn";
14281428
"uuid"; "align" ];
14291429

1430-
List.iter (fun a -> H.add table a (AttrFunType))
1430+
List.iter (fun a -> H.add table a AttrFunType)
14311431
[ "format"; "regparm"; "longcall";
14321432
"noinline"; "always_inline"; "gnu_inline"; "leaf";
14331433
"artificial"; "warn_unused_result"; "nonnull";
14341434
];
14351435

1436-
List.iter (fun a -> H.add table a (AttrFunType))
1436+
List.iter (fun a -> H.add table a AttrFunType)
14371437
[ "stdcall";"cdecl"; "fastcall" ];
14381438

14391439
List.iter (fun a -> H.add table a AttrType)
@@ -1953,7 +1953,7 @@ and typeOfLval = function
19531953
and typeOffset basetyp =
19541954
let blendAttributes baseAttrs =
19551955
let (_, _, contageous) =
1956-
partitionAttributes ~default:(AttrName) baseAttrs in
1956+
partitionAttributes ~default:AttrName baseAttrs in
19571957
typeAddAttributes contageous
19581958
in
19591959
function

src/frontc/cabs2cil.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ and makeVarInfoCabs
26432643
(n,ndt,a)
26442644
: varinfo =
26452645
let vtype, nattr =
2646-
doType (AttrName)
2646+
doType AttrName
26472647
bt (A.PARENTYPE(attrs, ndt, a)) in
26482648
if inline && not (isFunctionType vtype) then
26492649
ignore (error "inline for a non-function: %s" n);
@@ -3119,7 +3119,7 @@ and makeCompType (isstruct: bool)
31193119
if sto <> NoStorage || inl then
31203120
E.s (error "Storage or inline not allowed for fields");
31213121
let ftype, nattr =
3122-
doType (AttrName) bt (A.PARENTYPE(attrs, ndt, a)) in
3122+
doType AttrName bt (A.PARENTYPE(attrs, ndt, a)) in
31233123
(* check for fields whose type is an undefined struct. This rules
31243124
out circularity:
31253125
struct C1 { struct C2 c2; }; //This line is now an error.
@@ -5758,7 +5758,7 @@ and doDecl (isglobal: bool) : A.definition -> chunk = function
57585758
if isglobal then begin
57595759
let bt,_,_,attrs = spec_res in
57605760
let vtype, nattr =
5761-
doType (AttrName) bt (A.PARENTYPE(attrs, ndt, a)) in
5761+
doType AttrName bt (A.PARENTYPE(attrs, ndt, a)) in
57625762
(match filterAttributes "alias" nattr with
57635763
[] -> (* ordinary prototype. *)
57645764
ignore (createGlobal spec_res name)
@@ -5889,7 +5889,7 @@ and doDecl (isglobal: bool) : A.definition -> chunk = function
58895889
!currentFunctionFDEC.svar.vinline <- inl;
58905890

58915891
let ftyp, funattr =
5892-
doType (AttrName) bt (A.PARENTYPE(attrs, dt, a)) in
5892+
doType AttrName bt (A.PARENTYPE(attrs, dt, a)) in
58935893
!currentFunctionFDEC.svar.vtype <- ftyp;
58945894
!currentFunctionFDEC.svar.vattr <- funattr;
58955895

0 commit comments

Comments
 (0)