CloneSet54


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17210.980statement_seq[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11766
File/ReadUnicodeUTF16File.h
21760
File/WriteUnicodeUTF16File.h
Clone Instance
1
Line Count
17
Source Line
66
Source File
File/ReadUnicodeUTF16File.h

                        // release current file page if necessary
                        if (m_file_page != NULL) {
                                // release current file page
                                if (!UnmapViewOfFile((LPVOID)m_file_page)) {
                                        // close file mapping
                                        if (m_file_mapping != INVALID_HANDLE_VALUE) {
                                                CloseHandle(m_file_mapping);
                                                                                    }
                                        // close file
                                        if (m_file != INVALID_HANDLE_VALUE) {
                                                CloseHandle(m_file);
                                                                            }
                                        throw CouldNotReadFile(m_file_name, GetLastError());
                                                                           }
                                                 }
                        // close file mapping
                        if (m_file_mapping != INVALID_HANDLE_VALUE) {
                                CloseHandle(m_file_mapping);
                                                                    }


Clone Instance
2
Line Count
17
Source Line
60
Source File
File/WriteUnicodeUTF16File.h

                        // release current file page if necessary
                        if (m_file_page != NULL) {
                                // release current file page
                                if (!UnmapViewOfFile((LPVOID)m_file_page)) {
                                        // close file mapping
                                        if (m_file_mapping != INVALID_HANDLE_VALUE) {
                                                CloseHandle(m_file_mapping);
                                                                                    }
                                        // close file
                                        if (m_file != INVALID_HANDLE_VALUE) {
                                                CloseHandle(m_file);
                                                                            }
                                        throw CouldNotWriteFile(m_file_name, GetLastError());
                                                                           }
                                                 }
                        // close file mapping
                        if (m_file_mapping != INVALID_HANDLE_VALUE) {
                                CloseHandle(m_file_mapping);
                                                                    }


Clone AbstractionParameter Count: 1Parameter Bindings

// release current file page if necessary
if (m_file_page != NULL)
  {
    // release current file page
    if (!UnmapViewOfFile((LPVOID) m_file_page))
      {
        // close file mapping
        if (m_file_mapping != INVALID_HANDLE_VALUE)
          {
            CloseHandle(m_file_mapping);
          }
        // close file
        if (m_file != INVALID_HANDLE_VALUE)
          {
            CloseHandle(m_file);
          }
        throw [[#variablea956b60]](m_file_name, GetLastError());
      }
  }
// close file mapping
if (m_file_mapping != INVALID_HANDLE_VALUE)
  {
    CloseHandle(m_file_mapping);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a956b60]]
CouldNotWriteFile 
12[[#a956b60]]
CouldNotReadFile