Page MenuHomePhabricator

NSProgrammer (Nolan O'Brien)
User

Projects

User does not belong to any projects.

User Details

User Since
Nov 7 2018, 8:17 AM (19 w, 3 d)

Recent Activity

Fri, Feb 22

NSProgrammer added a comment to D17741: adds __FILE_BASENAME__ builtin macro.

We would prefer a macro like __FILE_NAME__ over a build flag for code reading consistency (they would clearly do different things vs varying based on an obscure flag being present/absent).

Fri, Feb 22, 9:49 AM

Jan 3 2019

NSProgrammer added a comment to D17741: adds __FILE_BASENAME__ builtin macro.

To throw in my 2 cents. I don’t really have a preference between a compiler flag vs a different macro that’s just for the file name sans path prefix. But I have a real need for this to get into clang: with 1.2 million lines of code, the regular placement of log statements and custom asserts leads to megabytes in binary size from all the FILE usages, and that could easily be a few hundred KB with this kind of support in clang.

Jan 3 2019, 7:41 AM

Nov 7 2018

NSProgrammer awarded D17741: adds __FILE_BASENAME__ builtin macro a Like token.
Nov 7 2018, 8:18 AM