Viladoman / StructLayout

Visual Studio Extension for C++ struct memory layout visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nedwardsnae opened this issue · comments

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.

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