浏览代码

[cpp] C++ has function scope

closes
Simon Krajewski 2 年之前
父节点
当前提交
84e6ba4f7e
共有 1 个文件被更改,包括 2 次插入1 次删除
  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_threads = true;
 			pf_supports_unicode = (defined Define.Cppia) || not (defined Define.DisableUnicodeStrings);
 			pf_supports_unicode = (defined Define.Cppia) || not (defined Define.DisableUnicodeStrings);
 			pf_scoping = { default_config.pf_scoping with
 			pf_scoping = { default_config.pf_scoping with
-				vs_flags = [NoShadowing]
+				vs_flags = [NoShadowing];
+				vs_scope = FunctionScope;
 			}
 			}
 		}
 		}
 	| Cs ->
 	| Cs ->