def _FlagsForRequest(self, request_data): filename = ToUtf8IfNeeded(request_data['filepath']) if 'compilation_flags' in request_data: return PrepareFlagsForClang(request_data['compilation_flags'], filename) client_data = request_data.get('extra_conf_data', None) return self._flags.FlagsForFile(filename, client_data=client_data)
def _FlagsForRequest(self, request_data): filename = request_data['filepath'] if 'compilation_flags' in request_data: # Not supporting specifying the translation unit using this method as it # is only used by the tests. return (PrepareFlagsForClang(request_data['compilation_flags'], filename), filename) client_data = request_data['extra_conf_data'] return self._flags.FlagsForFile(filename, client_data=client_data)