Browse Source

[cpp] C++ has function scope

closes
Simon Krajewski 2 years ago
parent
commit
84e6ba4f7e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/context/common.ml

+ 2 - 1
src/context/common.ml

@@ -650,7 +650,8 @@ let get_config com =
 			pf_supports_threads = true;
 			pf_supports_unicode = (defined Define.Cppia) || not (defined Define.DisableUnicodeStrings);
 			pf_scoping = { default_config.pf_scoping with
-				vs_flags = [NoShadowing]
+				vs_flags = [NoShadowing];
+				vs_scope = FunctionScope;
 			}
 		}
 	| Cs ->