DmitryPolukhin added a comment.

In D75184#1912650 <https://reviews.llvm.org/D75184#1912650>, @njames93 wrote:

> How are local and global options handled. 
>  From what I can gather it will read the value as `1` as the local option is 
> checked first no matter which file it was defined in.


You are absolutely right about current behaviour. Thank you for catching this 
odd behaviour. I'm not 100% confident what is the right behaviour but my guess 
is that overriding local option from parent config with global from child 
folder is better so I implemented it and added corresponding test.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75184/new/

https://reviews.llvm.org/D75184



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to