Viladoman / StructLayout

Visual Studio Extension for C++ struct memory layout visualization
MIT License
480 stars 22 forks source link

"The filename or extension is too long" - Unable to scan the given location #33

Closed nedwardsnae closed 1 year ago

nedwardsnae commented 1 year ago

Windows has a 32KiB (including null terminator) command line length limit with CreateProcess (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx)

When StructLayout tries to invoke ClangLayout with a command line that exceeds this limit it will fail. A response file should be used to pass args to clang if this limit is reached or exceeded.

nedwardsnae commented 1 year ago

Instead of a response file, a compilation database can be used. I have submitted PR #36 which contains this change.